|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.marshall.jboss.GenericJBossMarshaller
public class GenericJBossMarshaller
A marshaller that makes use of JBoss Marshalling to serialize and deserialize objects.
In addition to making use of JBoss Marshalling, this Marshaller
http://www.jboss.org/jbossmarshalling
Nested Class Summary | |
---|---|
protected static class |
GenericJBossMarshaller.DebuggingExceptionListener
|
Field Summary | |
---|---|
protected org.jboss.marshalling.MarshallingConfiguration |
configuration
|
protected static int |
DEFAULT_BUF_SIZE
|
protected static String |
DEFAULT_MARSHALLER_FACTORY
|
protected ClassLoader |
defaultCl
|
protected org.jboss.marshalling.MarshallerFactory |
factory
|
protected static Log |
log
|
Constructor Summary | |
---|---|
GenericJBossMarshaller()
|
Method Summary | |
---|---|
void |
finishObjectInput(ObjectInput oi)
|
void |
finishObjectOutput(ObjectOutput oo)
|
Object |
objectFromByteBuffer(byte[] buf)
Unmarshalls an object from a byte array. |
Object |
objectFromByteBuffer(byte[] buf,
int offset,
int length)
Unmarshalls an object from a specific portion of a byte array. |
Object |
objectFromInputStream(InputStream inputStream)
|
Object |
objectFromObjectStream(ObjectInput in)
|
ByteBuffer |
objectToBuffer(Object o)
A method that returns an instance of ByteBuffer , which allows direct access to the byte
array with minimal array copying |
byte[] |
objectToByteBuffer(Object o)
Marshalls an object to a byte array. |
byte[] |
objectToByteBuffer(Object obj,
int estimatedSize)
Marshalls an object to a byte array. |
void |
objectToObjectStream(Object obj,
ObjectOutput out)
|
ObjectInput |
startObjectInput(InputStream is,
boolean isReentrant)
|
ObjectOutput |
startObjectOutput(OutputStream os,
boolean isReentrant)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int DEFAULT_BUF_SIZE
protected static final Log log
protected static final String DEFAULT_MARSHALLER_FACTORY
protected ClassLoader defaultCl
protected org.jboss.marshalling.MarshallingConfiguration configuration
protected org.jboss.marshalling.MarshallerFactory factory
Constructor Detail |
---|
public GenericJBossMarshaller()
Method Detail |
---|
public byte[] objectToByteBuffer(Object obj, int estimatedSize) throws IOException
Marshaller
objectToByteBuffer
in interface Marshaller
obj
- object to convert to a byte array. Must not be null.estimatedSize
- an estimate of how large the resulting byte array may be
IOException
public ByteBuffer objectToBuffer(Object o) throws IOException
Marshaller
ByteBuffer
, which allows direct access to the byte
array with minimal array copying
objectToBuffer
in interface Marshaller
o
- object to marshall
IOException
public void objectToObjectStream(Object obj, ObjectOutput out) throws IOException
IOException
public ObjectOutput startObjectOutput(OutputStream os, boolean isReentrant) throws IOException
IOException
public void finishObjectOutput(ObjectOutput oo)
public Object objectFromByteBuffer(byte[] buf) throws IOException, ClassNotFoundException
Marshaller
objectFromByteBuffer
in interface Marshaller
buf
- byte array containing the binary representation of an object. Must not be null.
IOException
ClassNotFoundException
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
Marshaller
objectFromByteBuffer
in interface Marshaller
buf
- byte array containing the binary representation of an object. Must not be null.offset
- point in buffer to start readinglength
- number of bytes to consider
IOException
ClassNotFoundException
public ObjectInput startObjectInput(InputStream is, boolean isReentrant) throws IOException
IOException
public Object objectFromObjectStream(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void finishObjectInput(ObjectInput oi)
public Object objectFromInputStream(InputStream inputStream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public byte[] objectToByteBuffer(Object o) throws IOException
Marshaller
objectToByteBuffer
in interface Marshaller
o
- object to convert to a byte array. Must not be null.
IOException
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |