|
SSH Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.jscape.inet.telnet.TelnetOutputStream
public class TelnetOutputStream
Specialised output stream used to embed Telnet commands in ASCII stream.
| Constructor Summary | |
|---|---|
TelnetOutputStream(java.io.OutputStream out)
Creates a new TelnetOutputStream instance. |
|
TelnetOutputStream(java.io.OutputStream out,
java.lang.String characterSet)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.io.OutputStream |
|---|
close, flush |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TelnetOutputStream(java.io.OutputStream out)
out - the output stream
public TelnetOutputStream(java.io.OutputStream out,
java.lang.String characterSet)
| Method Detail |
|---|
public java.io.OutputStream getStream()
public void write(int a)
throws java.io.IOException
write in class java.io.OutputStreama - the data to write
java.io.IOException - if an I/O related error occurs
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamb - the data to write
java.io.IOException - if an I/O related error occurs
public 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 write
java.io.IOException - if an I/O related error occurs
public void println(java.lang.String line)
throws java.io.IOException
line - the data
java.io.IOException - if an I/O related error occurs
public void println(java.lang.String line,
java.lang.String terminator)
throws java.io.IOException
line - the dataterminator - the line terminator used
java.io.IOException - if an I/O related error occurs
public void twrite(int a)
throws java.io.IOException
a - the data to write
java.io.IOException - if an I/O related error occurs
public void twrite(byte[] a)
throws java.io.IOException
a - the data to write
java.io.IOException - if an I/O related error occurs
|
SSH Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||