Package cnuphys.swim.util
Class SerialIO
java.lang.Object
cnuphys.swim.util.SerialIO
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectserialRead(byte[] bytes) serialRead reads a serializable object from a byte arraystatic ObjectserialRead(String fullfn) Reads a serializable object from a file.static byte[]serialWrite(Serializable obj) serialWrite writes out a serializable object to a byte array.static voidserialWrite(Serializable obj, String fullfn) serialWrite writes out a serializable object to a file.
- 
Constructor Details- 
SerialIOpublic SerialIO()
 
- 
- 
Method Details- 
serialReadReads a serializable object from a file.- Parameters:
- fullfn- the full path.
- Returns:
- the deserialized object.
 
- 
serialReadserialRead reads a serializable object from a byte array- Parameters:
- bytes- the byte array
- Returns:
- the deserialized object
 
- 
serialWriteserialWrite writes out a serializable object to a file.- Parameters:
- obj- the serializable object.
- fullfn- the full path.
 
- 
serialWriteserialWrite writes out a serializable object to a byte array.- Parameters:
- obj- the serializable object.
- Returns:
- the array of bytes.
 
 
-