java.lang.Object
java.io.OutputStream
org.prelle.telnet.TelnetOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsendDo(int optionCode) voidsendDont(int optionCode) voidsendIAC(int optionCode) voidsendSubNegotiation(int code, byte[] value) voidsendSubNegotiation(int code, int command, byte[] value) voidsendSubNegotiation(int code, String line) voidsendWill(int optionCode) voidsendWont(int optionCode) voidsetBinaryMode(boolean enabled) voidsetInjectCRBeforeLF(boolean injectCRBeforeLF) voidwrite(byte[] data) voidwrite(int data) voidwriteCommand(byte[] data) Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
Constructor Details
-
TelnetOutputStream
-
-
Method Details
-
setBinaryMode
public void setBinaryMode(boolean enabled) - Throws:
IOException
-
isInBinaryMode
public boolean isInBinaryMode() -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
writeCommand
- Throws:
IOException
-
sendDo
- Throws:
IOException
-
sendWill
- Throws:
IOException
-
sendDont
- Throws:
IOException
-
sendWont
- Throws:
IOException
-
sendIAC
- Throws:
IOException
-
sendSubNegotiation
- Throws:
IOException
-
sendSubNegotiation
- Throws:
IOException
-
sendSubNegotiation
- Throws:
IOException
-
setInjectCRBeforeLF
public void setInjectCRBeforeLF(boolean injectCRBeforeLF) - Parameters:
injectCRBeforeLF- the injectCRBeforeLF to set
-