Project JXTA

net.jxta.impl.xindice.core.filer
Interface Streamable

All Known Implementing Classes:
BTree.BTreePageHeader, Paged.PageHeader

public interface Streamable

Streamable is an interface implemented by objects used by Filers and Indexers in order to serialize objects to and from IO streams.


Method Summary
 void read(DataInputStream is)
          read reads the object state from the stream.
 void write(DataOutputStream os)
          write writes the object state to the stream.
 

Method Detail

read

void read(DataInputStream is)
          throws IOException
read reads the object state from the stream.

Parameters:
is - The DataInputStream
Throws:
IOException - if an IOException occurs

write

void write(DataOutputStream os)
           throws IOException
write writes the object state to the stream.

Parameters:
os - The DataOutputStream
Throws:
IOException - if an IOException occurs

JXTA J2SE