|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.marshall.AbstractMarshaller
org.infinispan.marshall.jboss.JBossMarshaller
public class JBossMarshaller
JBossMarshaller.
Constructor Summary | |
---|---|
JBossMarshaller()
|
Method Summary | |
---|---|
void |
finishObjectInput(ObjectInput oi)
Finish using the given ObjectInput. |
void |
finishObjectOutput(ObjectOutput oo)
Finish using the given ObjectOutput. |
void |
init(ClassLoader defaultCl,
RemoteCommandFactory cmdFactory)
|
Object |
objectFromByteBuffer(byte[] buf)
|
Object |
objectFromByteBuffer(byte[] buf,
int offset,
int length)
|
Object |
objectFromObjectStream(ObjectInput in)
Unmarshalls an object from an ObjectInput |
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 obj)
|
void |
objectToObjectStream(Object obj,
ObjectOutput out)
Marshalls an object to a given ObjectOutput |
ObjectInput |
startObjectInput(InputStream is)
Create and open a new ObjectInput for the given input stream. |
ObjectOutput |
startObjectOutput(OutputStream os)
Create and open a new ObjectOutput for the given output stream. |
void |
stop()
|
Methods inherited from class org.infinispan.marshall.AbstractMarshaller |
---|
objectFromInputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBossMarshaller()
Method Detail |
---|
public void init(ClassLoader defaultCl, RemoteCommandFactory cmdFactory)
public void stop()
public byte[] objectToByteBuffer(Object obj) throws IOException
IOException
public ByteBuffer objectToBuffer(Object o) throws IOException
Marshaller
ByteBuffer
, which allows direct access to the byte
array with minimal array copying
o
- object to marshall
IOException
public ObjectOutput startObjectOutput(OutputStream os) throws IOException
Marshaller
os
- output stream
IOException
public void finishObjectOutput(ObjectOutput oo)
Marshaller
oo
- data output that finished usingpublic void objectToObjectStream(Object obj, ObjectOutput out) throws IOException
Marshaller
ObjectOutput
obj
- object to marshallout
- stream to marshall to
IOException
public Object objectFromByteBuffer(byte[] buf) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public ObjectInput startObjectInput(InputStream is) throws IOException
Marshaller
is
- input stream
IOException
public void finishObjectInput(ObjectInput oi)
Marshaller
oi
- data input that finished usingpublic Object objectFromObjectStream(ObjectInput in) throws IOException, ClassNotFoundException
Marshaller
ObjectInput
in
- stream to unmarshall from
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |