|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.util.TelnetInputStream.TelnetCommand
A Telnet command, associated to a specific TelnetInputStream
.
Commands are produced by a TelnetInputStream
itself on reading.
Method Summary | |
int |
getCommandCode()
Return the telnet command code |
java.lang.String |
getCommandName()
Return an human-readable description of the command code. |
int |
getOptionCode()
Return the option code for the command. |
long |
getSequenceNumber()
Return the order of the command as it has been read from the stream |
boolean |
hasOptionCode()
Return true if the command is has an option code (DO, DONT, WILL, WONT) |
java.lang.String |
toString()
Return a string representation of the command |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public boolean hasOptionCode()
public int getOptionCode()
java.lang.IllegalStateException
- if the command has no optionspublic int getCommandCode()
public java.lang.String getCommandName()
public long getSequenceNumber()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |