java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.prelle.telnet.TelnetInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()booleanbooleanbooleanintread()intread(byte[] bytes) read into a byte arrayintread(byte[] bytes, int off, int length) Read into a byte array at offset off for length length bytes.Read until the next CR can be foundvoidsetBinaryMode(boolean enabled) voidsetCharacterMode(boolean characterMode) voidsetSendGoAheadAsANSISepator(boolean sendGoAheadAsANSISepator) longskip(long amount) Methods inherited from class java.io.FilterInputStream
mark, markSupported, resetMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
binaryMode
public boolean binaryMode
-
-
Constructor Details
-
TelnetInputStream
-
-
Method Details
-
setBinaryMode
public void setBinaryMode(boolean enabled) -
isInBinaryMode
public boolean isInBinaryMode() -
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
read into a byte array- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
Read into a byte array at offset off for length length bytes.- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
readUntilCR
Read until the next CR can be found- Returns:
- Throws:
IOException
-
isCharacterMode
public boolean isCharacterMode()- Returns:
- the characterMode
-
setCharacterMode
public void setCharacterMode(boolean characterMode) - Parameters:
characterMode- the characterMode to set
-
isSendGoAheadAsANSISepator
public boolean isSendGoAheadAsANSISepator() -
setSendGoAheadAsANSISepator
public void setSendGoAheadAsANSISepator(boolean sendGoAheadAsANSISepator)
-