org.jgroups.util
Interface Streamable

All Known Subinterfaces:
Address
All Known Implementing Classes:
AuthHeader, AuthToken, COMPRESS.CompressHeader, Digest, DrawCommand, ENCRYPT.EncryptHeader, FC.FcHeader, FD_PROB.FdHeader, FD_SIMPLE.FdHeader, FD_SOCK.FdHeader, FD.FdHeader, FixedMembershipToken, FLUSH.FlushHeader, FragHeader, GMS.GmsHeader, GossipData, HTOTAL.HTotalHeader, IpAddress, JMS.JMSAddress, JoinRsp, LogicalAddress, MD5Token, MergeView, Message, MuxHeader, NakAckHeader, PingHeader, PingRsp, Range, RequestCorrelator.Header, SEQUENCER.SequencerHeader, ServiceInfo, SimpleToken, SMACK.SmackHeader, STABLE.StableHeader, STATE_TRANSFER.StateHeader, STREAMING_STATE_TRANSFER.StateHeader, TcpHeader, TOTAL.Header, TpHeader, TunnelHeader, UdpHeader, UNICAST.UnicastHeader, VERIFY_SUSPECT.VerifyHeader, View, VIEW_SYNC.ViewSyncHeader, ViewId, WanPipeAddress, X509Token1_5

public interface Streamable

Implementations of Streamable can add their state directly to the output stream, enabling them to bypass costly serialization

Version:
$Id: Streamable.java,v 1.2 2005/07/25 16:21:47 belaban Exp $
Author:
Bela Ban

Method Summary
 void readFrom(java.io.DataInputStream in)
          Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
 void writeTo(java.io.DataOutputStream out)
          Write the entire state of the current object (including superclasses) to outstream.
 

Method Detail

writeTo

void writeTo(java.io.DataOutputStream out)
             throws java.io.IOException
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed

Throws:
java.io.IOException

readFrom

void readFrom(java.io.DataInputStream in)
              throws java.io.IOException,
                     java.lang.IllegalAccessException,
                     java.lang.InstantiationException
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed

Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException


Copyright ? 1998-2006 Bela Ban. All Rights Reserved.