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 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
Modifier and TypeMethodDescriptionvoid
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoid
writeTo
(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Method Details
-
writeTo
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
IOException
-
readFrom
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
-