Interface cryptix.util.StreamInterface
All Packages Class Hierarchy This Package Previous Next Index
Interface cryptix.util.StreamInterface
- public interface StreamInterface
- extends Object
This interface allows objects to be read from
or written onto DataInput and DataOutput objects.
There are also binary array methods to allow
other types of storing or when the length is required.
-
load(byte[])
- This loads the object from a saved buffer.
-
read(DataInput)
- This reads the object from the data input stream
-
save()
- This saves the object into a buffer.
-
write(DataOutput)
- This writes the object to the data output stream
load
public abstract void load(byte buffer[]) throws IOException
- This loads the object from a saved buffer.
save
public abstract byte[] save() throws IOException
- This saves the object into a buffer.
read
public abstract void read(DataInput in) throws IOException
- This reads the object from the data input stream
write
public abstract void write(DataOutput out) throws IOException
- This writes the object to the data output stream
All Packages Class Hierarchy This Package Previous Next Index