org.infinispan.marshall
Class AbstractStreamingMarshaller

java.lang.Object
  extended by 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

Field Summary
protected static int DEFAULT_BUF_SIZE
           
 
Constructor Summary
AbstractStreamingMarshaller()
           
 
Method Summary
 Object objectFromInputStream(InputStream inputStream)
           
 byte[] objectToByteBuffer(Object o)
          Marshalls an object to a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.marshall.StreamingMarshaller
finishObjectInput, finishObjectOutput, objectFromObjectStream, objectToObjectStream, startObjectInput, startObjectOutput
 
Methods inherited from interface org.infinispan.marshall.Marshaller
objectFromByteBuffer, objectFromByteBuffer, objectToBuffer, objectToByteBuffer
 

Field Detail

DEFAULT_BUF_SIZE

protected static final int DEFAULT_BUF_SIZE
See Also:
Constant Field Values
Constructor Detail

AbstractStreamingMarshaller

public AbstractStreamingMarshaller()
Method Detail

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

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.