org.jgroups.protocols

Class FragHeader

Implemented Interfaces:
Externalizable, Streamable

public class FragHeader
extends Header
implements Streamable

Version:
$Id: FragHeader.java,v 1.2 2005/04/15 13:17:02 belaban Exp $
Author:
Bela Ban

Field Summary

int
frag_id
long
id
int
num_frags

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

FragHeader()
FragHeader(long id, int frag_id, int num_frags)

Method Summary

void
readExternal(ObjectInput in)
void
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
long
size()
String
toString()
void
writeExternal(ObjectOutput out)
void
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.

Methods inherited from class org.jgroups.Header

size, toString

Field Details

frag_id

public int frag_id

id

public long id

num_frags

public int num_frags

Constructor Details

FragHeader

public FragHeader()

FragHeader

public FragHeader(long id,
                  int frag_id,
                  int num_frags)

Method Details

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

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
Specified by:
readFrom in interface Streamable

size

public long size()
Overrides:
size in interface Header

toString

public String toString()
Overrides:
toString in interface Header

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException

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
Specified by:
writeTo in interface Streamable

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.