org.infinispan.marshall
Class AbstractStreamingMarshaller
java.lang.Object
org.infinispan.marshall.AbstractStreamingMarshaller
- All Implemented Interfaces:
- Marshaller, StreamingMarshaller
- Direct Known Subclasses:
- VersionAwareMarshaller
public abstract class AbstractStreamingMarshaller
- extends Object
- implements StreamingMarshaller
Abstract marshaller
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUF_SIZE
protected static final int DEFAULT_BUF_SIZE
- See Also:
- Constant Field Values
AbstractStreamingMarshaller
public AbstractStreamingMarshaller()
objectFromInputStream
public Object objectFromInputStream(InputStream inputStream)
throws IOException,
ClassNotFoundException
- Specified by:
objectFromInputStream
in interface StreamingMarshaller
- Throws:
IOException
ClassNotFoundException
objectToByteBuffer
public byte[] objectToByteBuffer(Object o)
throws IOException
- Description copied from interface:
Marshaller
- Marshalls an object to a byte array.
- Specified by:
objectToByteBuffer
in interface Marshaller
- Parameters:
o
- object to convert to a byte array. Must not be null.
- Returns:
- a byte array
- Throws:
IOException
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.