本文整理汇总了Java中com.alibaba.com.caucho.hessian.io.Hessian2Input.setSerializerFactory方法的典型用法代码示例。如果您正苦于以下问题:Java Hessian2Input.setSerializerFactory方法的具体用法?Java Hessian2Input.setSerializerFactory怎么用?Java Hessian2Input.setSerializerFactory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.alibaba.com.caucho.hessian.io.Hessian2Input
的用法示例。
在下文中一共展示了Hessian2Input.setSerializerFactory方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testJava8Time
import com.alibaba.com.caucho.hessian.io.Hessian2Input; //导入方法依赖的package包/类
private void testJava8Time(Object expected) throws IOException {
os.reset();
Hessian2Output output = new Hessian2Output(os);
output.setSerializerFactory(factory);
output.writeObject(expected);
output.flush();
ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
Hessian2Input input = new Hessian2Input(is);
input.setSerializerFactory(factory);
Object actual = input.readObject();
TestCase.assertEquals(expected, actual);
}
示例2: Hessian2ObjectInput
import com.alibaba.com.caucho.hessian.io.Hessian2Input; //导入方法依赖的package包/类
public Hessian2ObjectInput(InputStream is)
{
mH2i = new Hessian2Input(is);
mH2i.setSerializerFactory(Hessian2SerializerFactory.SERIALIZER_FACTORY);
}
示例3: MyHessian2ObjectInput
import com.alibaba.com.caucho.hessian.io.Hessian2Input; //导入方法依赖的package包/类
public MyHessian2ObjectInput(InputStream is)
{
mH2i = new Hessian2Input(is);
mH2i.setSerializerFactory(MyHessian2SerializerFactory.SERIALIZER_FACTORY);
}
示例4: Hessian2ObjectInput
import com.alibaba.com.caucho.hessian.io.Hessian2Input; //导入方法依赖的package包/类
public Hessian2ObjectInput(InputStream is) {
mH2i = new Hessian2Input(is);
mH2i.setSerializerFactory(Hessian2SerializerFactory.SERIALIZER_FACTORY);
}