public static class SCOPE.ScopeHeader extends Header
Constructor and Description |
---|
ScopeHeader() |
Modifier and Type | Method and Description |
---|---|
static SCOPE.ScopeHeader |
createExpireHeader(short scope) |
static SCOPE.ScopeHeader |
createMessageHeader(short scope) |
short |
getScope() |
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
|
int |
size()
To be implemented by subclasses.
|
java.lang.String |
toString() |
static java.lang.String |
typeToString(byte type) |
void |
writeTo(java.io.DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte MSG
public static final byte EXPIRE
public static SCOPE.ScopeHeader createMessageHeader(short scope)
public static SCOPE.ScopeHeader createExpireHeader(short scope)
public short getScope()
public int size()
Header
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
public static java.lang.String typeToString(byte type)
Copyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.