public class SessionId extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getSessionId() |
int |
hashCode() |
void |
readBytes(InputStream in)
Read the session ID from a stream.
|
void |
setSessionId(int id)
Set the session ID.
|
String |
toString() |
void |
writeBytes(OutputStream out) |
public SessionId()
public SessionId(int id)
id - 0-65535public int getSessionId()
public void readBytes(InputStream in) throws DataFormatException, IOException
IllegalStateException - if already setDataFormatExceptionIOExceptionpublic void setSessionId(int id)
id - 0-65535IllegalArgumentException - if the ID is out of rangeIllegalStateException - if already setpublic void writeBytes(OutputStream out) throws DataFormatException, IOException
DataFormatExceptionIOException