|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.telnet.TelnetOption
com.jscape.inet.telnet.options.TerminalType
public class TerminalType
Represents the TERMINAL TYPE Telnet option as defined in RFC 1091. This option is used for negotiation of display options with the server. Example: TerminalType term = new TerminalType("dumb"); *
Constructor Summary | |
---|---|
TerminalType()
Creates a new TerminalType instance. |
|
TerminalType(java.lang.String terminalType)
Creates a new TerminalType instance. |
Method Summary | |
---|---|
java.lang.String |
getTerminalType()
Gets the terminal type. |
void |
readSubnegotiation(java.io.InputStream in)
Reads subnegotiation data for this TelnetOption |
void |
setTerminalType(java.lang.String terminalType)
Sets the terminal type. |
void |
writeSubnegotiation(java.io.OutputStream out)
Writes subnegotiation data for this TelnetOption. |
Methods inherited from class com.jscape.inet.telnet.TelnetOption |
---|
getOptionCode, getOptionName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerminalType()
public TerminalType(java.lang.String terminalType)
terminalType
- the terminal typeMethod Detail |
---|
public void writeSubnegotiation(java.io.OutputStream out) throws java.io.IOException
writeSubnegotiation
in class TelnetOption
out
- the OutputStream to write data to.
java.io.IOException
- if an I/O related error occurs.public void readSubnegotiation(java.io.InputStream in) throws java.io.IOException
readSubnegotiation
in class TelnetOption
in
- the InputStream to read from
java.io.IOException
- if an I/O related error occurspublic java.lang.String getTerminalType()
public void setTerminalType(java.lang.String terminalType)
terminalType
- the terminal type
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |