|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.comm.socket.BootstrapObjectSerializer
public class BootstrapObjectSerializer
This serializer is used solely by the nodes to enable their bootstrapping.
| Constructor Summary | |
|---|---|
BootstrapObjectSerializer()
The default constructor must be public to allow for instantiation through Java reflection. |
|
| Method Summary | |
|---|---|
Object |
deserialize(byte[] bytes)
Read an object from an array of bytes. |
Object |
deserialize(byte[] bytes,
int offset,
int length)
Read an object from an array of bytes. |
Object |
deserialize(InputStream is)
Read an object from an input stream. |
Object |
deserialize(JPPFBuffer buf)
Read an object from an array of bytes. |
JPPFBuffer |
serialize(Object o)
Serialize an object into an array of bytes. |
JPPFBuffer |
serialize(Object o,
boolean noCopy)
Serialize an object into an array of bytes. |
void |
serialize(Object o,
OutputStream os)
Serialize an object into an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BootstrapObjectSerializer()
| Method Detail |
|---|
public JPPFBuffer serialize(Object o)
throws Exception
serialize in interface ObjectSerializero - the object to Serialize.
JPPFBuffer instance holding the serialized object.
Exception - if the object can't be serialized.ObjectSerializer.serialize(java.lang.Object)
public JPPFBuffer serialize(Object o,
boolean noCopy)
throws Exception
serialize in interface ObjectSerializero - the object to Serialize.noCopy - avoid copying intermediate buffers.
JPPFBuffer instance holding the serialized object.
Exception - if the object can't be serialized.ObjectSerializer.serialize(java.lang.Object)
public void serialize(Object o,
OutputStream os)
throws Exception
serialize in interface ObjectSerializero - - the object to Serialize.os - - the output stream to serialize to.
Exception - if the object can't be serialized.ObjectSerializer.serialize(java.lang.Object, java.io.OutputStream)
public Object deserialize(JPPFBuffer buf)
throws Exception
deserialize in interface ObjectSerializerbuf - buffer holding the array of bytes to deserialize from.
Exception - if the ObjectInputStream used for deserialization raises an error.ObjectSerializer.deserialize(org.jppf.utils.JPPFBuffer)
public Object deserialize(byte[] bytes)
throws Exception
deserialize in interface ObjectSerializerbytes - buffer holding the array of bytes to deserialize from.
Exception - if the ObjectInputStream used for deserialization raises an error.ObjectSerializer.deserialize(byte[])
public Object deserialize(byte[] bytes,
int offset,
int length)
throws Exception
deserialize in interface ObjectSerializerbytes - buffer holding the array of bytes to deserialize from.offset - position at which to start reading the bytes from.length - the number of bytes to read.
Exception - if the ObjectInputStream used for deserialization raises an error.ObjectSerializer.deserialize(byte[], int, int)
public Object deserialize(InputStream is)
throws Exception
deserialize in interface ObjectSerializeris - - the input stream to deserialize from.
Exception - if the ObjectInputStream used for deserialization raises an error.ObjectSerializer.deserialize(java.io.InputStream)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||