T - The type of elements to read from or write to
a stream.public interface IStreamable<T>
| Modifier and Type | Method and Description |
|---|---|
IStreamable<T> |
Clone()
Creates a deep copy of the current instance.
|
int |
NumOfBytes()
Gets the total number of bytes of an object of type T.
|
void |
Read(java.io.DataInput reader)
Reads the current object of type T from the specified stream.
|
void |
SetValue(T value)
Sets the value of the current instance.
|
T |
Value()
Gets the value of the current instance.
|
void |
Write(java.io.DataOutput writer)
Writes the current object of type T to the specified stream.
|
IStreamable<T> Clone()
T Value()
void SetValue(T value)
value - The new value of the current instance.int NumOfBytes()
void Read(java.io.DataInput reader)
throws java.io.IOException
reader - The specified stream to be read.java.io.IOException - if an I/O error occurs.void Write(java.io.DataOutput writer)
throws java.io.IOException
writer - The specified stream to be written to.java.io.IOException - if an I/O error occurs.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.