public class TelnetOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
TelnetOutputStream(java.io.OutputStream out)
Creates a new TelnetOutputStream instance.
|
TelnetOutputStream(java.io.OutputStream out,
java.lang.String characterSet) |
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getStream()
Returns underlying stream.
|
void |
println(java.lang.String line)
Write line of data with escaping IAC terminated with LF.
|
void |
println(java.lang.String line,
java.lang.String terminator)
Write line of data with escaping IAC terminated with specified line terminator.
|
void |
twrite(byte[] a)
Write data to telnet stream without escaping IAC.
|
void |
twrite(int a)
Write data to telnet stream without escaping IAC.
|
void |
write(byte[] b)
Write data to telnet stream with escaping IAC.
|
void |
write(byte[] b,
int off,
int len)
Write data to telnet stream with escaping IAC.
|
void |
write(int a)
Write data to telnet stream with escaping IAC.
|
public TelnetOutputStream(java.io.OutputStream out)
out - the output streampublic TelnetOutputStream(java.io.OutputStream out,
java.lang.String characterSet)
public java.io.OutputStream getStream()
public void write(int a)
throws java.io.IOException
write in class java.io.OutputStreama - the data to writejava.io.IOException - if an I/O related error occurspublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamb - the data to writejava.io.IOException - if an I/O related error occurspublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - the dataoff - the start offset in the datalen - the number of bytes to writejava.io.IOException - if an I/O related error occurspublic void println(java.lang.String line)
throws java.io.IOException
line - the datajava.io.IOException - if an I/O related error occurspublic void println(java.lang.String line,
java.lang.String terminator)
throws java.io.IOException
line - the dataterminator - the line terminator usedjava.io.IOException - if an I/O related error occurspublic void twrite(int a)
throws java.io.IOException
a - the data to writejava.io.IOException - if an I/O related error occurspublic void twrite(byte[] a)
throws java.io.IOException
a - the data to writejava.io.IOException - if an I/O related error occursCopyright © JSCAPE LLC. 1999-2021. All Rights Reserved