|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
org.apache.commons.net.telnet.TelnetOutputStream
| Field Summary | |
private TelnetClient |
__client
|
private boolean |
__convertCRtoCRLF
|
private boolean |
__lastWasCR
|
| Constructor Summary | |
(package private) |
TelnetOutputStream(TelnetClient client)
|
| Method Summary | |
void |
close()
Closes the stream. |
void |
flush()
Flushes the stream. |
void |
write(byte[] buffer)
Writes a byte array to the stream. |
void |
write(byte[] buffer,
int offset,
int length)
Writes a number of bytes from a byte array to the stream starting from a given offset. |
void |
write(int ch)
Writes a byte to the stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private TelnetClient __client
private boolean __convertCRtoCRLF
private boolean __lastWasCR
| Constructor Detail |
TelnetOutputStream(TelnetClient client)
| Method Detail |
public void write(int ch)
throws java.io.IOException
ch - The byte to write.
java.io.IOException - If an error occurs while writing to the underlying
stream.
public void write(byte[] buffer)
throws java.io.IOException
buffer - The byte array to write.
java.io.IOException - If an error occurs while writing to the underlying
stream.
public void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
buffer - The byte array to write.offset - The offset into the array at which to start copying data.length - The number of bytes to write.
java.io.IOException - If an error occurs while writing to the underlying
stream.
public void flush()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||