cryptix.util
Interface StreamInterface

All Known Implementing Classes:
Streamable

public interface StreamInterface

This interface allows objects to be read from or written to DataInput and DataOutput objects. There are also binary array methods to allow other types of storing, or for when it is necessary to know the length of the data.

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.2 $

Since:
Cryptix 2.2
Author:
unattributed

Method Summary
 void load(byte[] buffer)
          Loads 'this' from a saved buffer.
 void read(java.io.DataInput in)
          Reads 'this' from the DataInput object.
 byte[] save()
          Saves 'this' into a buffer.
 void write(java.io.DataOutput out)
          Writes 'this' to the DataOutput object.
 

Method Detail

load

public void load(byte[] buffer)
          throws java.io.IOException
Loads 'this' from a saved buffer.

save

public byte[] save()
            throws java.io.IOException
Saves 'this' into a buffer.

read

public void read(java.io.DataInput in)
          throws java.io.IOException
Reads 'this' from the DataInput object.

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Writes 'this' to the DataOutput object.