public class SessionId extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getSessionId() |
int |
hashCode() |
void |
readBytes(InputStream in) |
void |
setSessionId(int id) |
String |
toString() |
void |
writeBytes(OutputStream out) |
public SessionId()
public SessionId(int id)
id
- 0-65535public int getSessionId()
public void setSessionId(int id)
id
- 0-65535IllegalArgumentException
IllegalStateException
- if already setpublic void readBytes(InputStream in) throws DataFormatException, IOException
IllegalStateException
- if already setDataFormatException
IOException
public void writeBytes(OutputStream out) throws DataFormatException, IOException
DataFormatException
IOException