|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ObjectWriter
This class is used to write an object by converting it to a byte array and inturn converting that a string and reconstructing the object back from from the string representation
| Constructor Summary | |
ObjectWriter()
|
|
| Method Summary | |
java.lang.Object |
bytesToObject(byte[] byteBuffer)
Converts a ByteArray to an object |
static void |
main(java.lang.String[] args)
|
byte[] |
objectToBytes(java.lang.Object o)
Converts an object to byte array. |
java.lang.String |
objectToString(java.lang.Object o)
Converts an object to a string. |
java.lang.Object |
stringToObject(java.lang.String s)
Converts a string to an object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectWriter()
| Method Detail |
public java.lang.String objectToString(java.lang.Object o)
public byte[] objectToBytes(java.lang.Object o)
public java.lang.Object stringToObject(java.lang.String s)
public java.lang.Object bytesToObject(byte[] byteBuffer)
byteBuffer - ByteArray to be converted to an object
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||