Package org.jgroups.util
Interface Streamable
-
- All Known Subinterfaces:
Address
- All Known Implementing Classes:
AuthHeader,AuthToken,CAUSAL.CausalHeader,CAUSAL.CausalNewViewHeader,CAUSAL.MissingIndexesMessage,COMPRESS.CompressHeader,Digest,Digest.Entry,DISCARD.DiscardHeader,DrawCommand,ENCRYPT.EncryptHeader,FC.FcHeader,FD_ALL.Header,FD_SIMPLE.FdHeader,FD_SOCK.FdHeader,FD.FdHeader,FixedMembershipToken,FLUSH.FlushHeader,FragHeader,GMS.GmsHeader,GossipData,HTOTAL.HTotalHeader,IpAddress,JMS.JMSAddress,JoinRsp,MD5Token,MergeView,Message,MutableDigest,MuxHeader,NakAckHeader,PingHeader,PingRsp,Range,RequestCorrelator.Header,SEQUENCER.SequencerHeader,ServiceInfo,SFC.Header,SimpleToken,SMACK.SmackHeader,STABLE.StableHeader,STATE_TRANSFER.StateHeader,STREAMING_STATE_TRANSFER.StateHeader,TcpHeader,TpHeader,TunnelHeader,UdpHeader,UNICAST.UnicastHeader,VERIFY_SUSPECT.VerifyHeader,View,VIEW_SYNC.ViewSyncHeader,ViewId,X509Token
public interface StreamableImplementations 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreadFrom(java.io.DataInputStream in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidwriteTo(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.IOExceptionWrite 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.InstantiationExceptionRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
java.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException
-
-