本文整理汇总了Java中com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectInput类的典型用法代码示例。如果您正苦于以下问题:Java GenericObjectInput类的具体用法?Java GenericObjectInput怎么用?Java GenericObjectInput使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GenericObjectInput类属于com.alibaba.dubbo.common.serialize.support.dubbo包,在下文中一共展示了GenericObjectInput类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deserialize
import com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectInput; //导入依赖的package包/类
public Object deserialize(byte[] array) throws Exception
{
GenericObjectInput objectInput = new GenericObjectInput(new ByteArrayInputStream(array));
return objectInput.readObject();
}
示例2: deserialize
import com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectInput; //导入依赖的package包/类
public ObjectInput deserialize( InputStream is) throws IOException {
return new GenericObjectInput(is);
}
示例3: deserialize
import com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectInput; //导入依赖的package包/类
public ObjectInput deserialize(URL url, InputStream is) throws IOException {
return new GenericObjectInput(is);
}
示例4: deserialize
import com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectInput; //导入依赖的package包/类
public Object deserialize(byte[] array) throws Exception {
GenericObjectInput objectInput = new GenericObjectInput(new ByteArrayInputStream(array));
return objectInput.readObject();
}