org.jgroups.util
Interface Streamable
- Address
- COMPRESS.CompressHeader, Digest, ENCRYPT.EncryptHeader, FC.FcHeader, FD.FdHeader, FD_SOCK.FdHeader, FragHeader, GMS.GmsHeader, HTOTAL.HTotalHeader, IpAddress, JMS.JMSAddress, JoinRsp, LogicalAddress, MergeView, Message, NakAckHeader, PingHeader, PingRsp, Range, RequestCorrelator.Header, STABLE.StableHeader, STATE_TRANSFER.StateHeader, TcpHeader, TpHeader, UdpHeader, UNICAST.UnicastHeader, VERIFY_SUSPECT.VerifyHeader, View, ViewId, VIEW_SYNC.ViewSyncHeader, WanPipeAddress
public interface Streamable
Implementations of Streamable can add their state directly to the output stream, enabling them to bypass costly
serialization
$Id: Streamable.java,v 1.2 2005/07/25 16:21:47 belaban Exp $ void | readFrom(DataInputStream in) - Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void | writeTo(DataOutputStream out) - Write the entire state of the current object (including superclasses) to outstream.
|
readFrom
public void readFrom(DataInputStream in)
throws IOException,
IllegalAccessException,
InstantiationException
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
writeTo
public void writeTo(DataOutputStream out)
throws IOException
Write the entire state of the current object (including superclasses) to outstream.
Note that the output stream must not be closed
Copyright B) 1998-2005 Bela Ban. All Rights Reserved.