|
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 streampublic 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.OutputStream
a
- the data to write
java.io.IOException
- if an I/O related error occurspublic void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
b
- the data to write
java.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.OutputStream
b
- the dataoff
- the start offset in the datalen
- the number of bytes to write
java.io.IOException
- if an I/O related error occurspublic void println(java.lang.String line) throws java.io.IOException
line
- the data
java.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 used
java.io.IOException
- if an I/O related error occurspublic void twrite(int a) throws java.io.IOException
a
- the data to write
java.io.IOException
- if an I/O related error occurspublic 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 |