org.apache.commons.net.telnet
Class TelnetOutputStream
OutputStream
org.apache.commons.net.telnet.TelnetOutputStream
(package private) final class TelnetOutputStream
extends OutputStream
- Daniel F. Savarese
void | close() - Closes the stream.
|
void | flush() - Flushes the stream.
|
void | write(buffer[] ) -
Writes a byte array to the stream.
|
void | write(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.
|
__convertCRtoCRLF
private boolean __convertCRtoCRLF
__lastWasCR
private boolean __lastWasCR
TelnetOutputStream
(package private) TelnetOutputStream(TelnetClient client)
close
public void close()
throws IOException
Closes the stream. **
flush
public void flush()
throws IOException
Flushes the stream. **
write
public void write(buffer[] )
throws IOException
Writes a byte array to the stream.
write
public void write(buffer[] ,
int offset,
int length)
throws IOException
Writes a number of bytes from a byte array to the stream starting from
a given offset.
offset
- The offset into the array at which to start copying data.length
- The number of bytes to write.
write
public void write(int ch)
throws IOException
Writes a byte to the stream.
ch
- The byte to write.