|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcgl.narada.wsinfra.util.MarshallingUtils
A utility class to Marshall and Unmarshall object and object bytes
| Field Summary | |
static MarshallingUtils |
instance
|
| Method Summary | |
static MarshallingUtils |
getInstance()
|
byte[] |
marshall(Object object)
Marshall an object into a byte stream |
EnvelopeDocument |
readEnvelopeFromStream(DataInputStream din)
Reads an envelope document from the underlying stream |
EndpointReferenceType |
readEprFromStream(DataInputStream din)
Read an EPR from the underlying datainput stream |
Object |
readObjectFromStream(DataInputStream din)
Reads an object that was written using the writeObject(object, DataOutputStream) from a DataInputStream |
String |
readStringFromStream(DataInputStream din)
Reads a String from the underlying dataInput Stream |
Object |
unmarshall(byte[] objectBytes)
Unmrahsall an object from a byte stream |
void |
writeEnvelopeToStream(EnvelopeDocument envelopeDocument,
DataOutputStream dout)
Writes an envelope document to the underlying stream |
void |
writeEprToStream(EndpointReferenceType eprType,
DataOutputStream dout)
Writes an endpoint reference to the underlying stream |
void |
writeObjectToStream(Object object,
DataOutputStream dout)
Writes an object onto a DataOutputStream |
void |
writeStringToStream(String toWrite,
DataOutputStream dout)
Writes a String to the underlying stream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final MarshallingUtils instance
| Method Detail |
public static MarshallingUtils getInstance()
public byte[] marshall(Object object)
throws IOException
IOException
public Object unmarshall(byte[] objectBytes)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
public void writeObjectToStream(Object object,
DataOutputStream dout)
throws IOException
IOException
public Object readObjectFromStream(DataInputStream din)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
public String readStringFromStream(DataInputStream din)
throws IOException
IOException
public void writeStringToStream(String toWrite,
DataOutputStream dout)
throws IOException
IOException
public void writeEprToStream(EndpointReferenceType eprType,
DataOutputStream dout)
throws IOException
IOException
public EndpointReferenceType readEprFromStream(DataInputStream din)
throws IOException
IOException
public void writeEnvelopeToStream(EnvelopeDocument envelopeDocument,
DataOutputStream dout)
throws IOException
IOException
public EnvelopeDocument readEnvelopeFromStream(DataInputStream din)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||