org.eclipse.ecf.remoteservice.util
Class ObjectSerializationUtil

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.util.ObjectSerializationUtil
Direct Known Subclasses:
ObjectSerializationParameterDeserializer, ObjectSerializationResponseSerializer

public class ObjectSerializationUtil
extends java.lang.Object

Since:
8.1

Field Summary
static int DEFAULT_BAOS_BUFFER_SIZE
           
 
Constructor Summary
ObjectSerializationUtil()
           
 
Method Summary
 java.lang.Object deserializeFromBytes(byte[] bytes)
           
 byte[] readToByteArray(java.io.InputStream input)
           
 byte[] serializeToBytes(java.lang.Object object)
           
 void writeByteArray(java.io.OutputStream outs, byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BAOS_BUFFER_SIZE

public static final int DEFAULT_BAOS_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

ObjectSerializationUtil

public ObjectSerializationUtil()
Method Detail

readToByteArray

public byte[] readToByteArray(java.io.InputStream input)
                       throws java.io.IOException
Throws:
java.io.IOException

writeByteArray

public void writeByteArray(java.io.OutputStream outs,
                           byte[] bytes)
                    throws java.io.IOException
Throws:
java.io.IOException

deserializeFromBytes

public java.lang.Object deserializeFromBytes(byte[] bytes)
                                      throws java.io.IOException
Throws:
java.io.IOException

serializeToBytes

public byte[] serializeToBytes(java.lang.Object object)
                        throws java.io.IOException
Throws:
java.io.IOException