cryptix.util
Class Streamable

java.lang.Object
  extended bycryptix.util.Streamable
All Implemented Interfaces:
StreamInterface
Direct Known Subclasses:
EncryptedBigInt, EncryptedSecretKey, Message, PacketHeader

public abstract class Streamable
extends java.lang.Object
implements StreamInterface

This is a Streamable abstract base class that provides the load and save methods from StreamInterface. Only the read and write methods need defining for use.

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

$Revision: 1.2 $

Since:
Cryptix 2.2
Author:
unattributed
See Also:
StreamInterface

Constructor Summary
Streamable()
           
Streamable(byte[] buf)
           
Streamable(java.io.DataInput in)
           
 
Method Summary
 void load(byte[] buf)
          Loads 'this' from a saved buffer.
 byte[] save()
          Saves 'this' into a buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cryptix.util.StreamInterface
read, write
 

Constructor Detail

Streamable

public Streamable()

Streamable

public Streamable(byte[] buf)
           throws java.io.IOException

Streamable

public Streamable(java.io.DataInput in)
           throws java.io.IOException
Method Detail

load

public final void load(byte[] buf)
                throws java.io.IOException
Description copied from interface: StreamInterface
Loads 'this' from a saved buffer.

Specified by:
load in interface StreamInterface
Throws:
java.io.IOException

save

public final byte[] save()
                  throws java.io.IOException
Description copied from interface: StreamInterface
Saves 'this' into a buffer.

Specified by:
save in interface StreamInterface
Throws:
java.io.IOException