Writer | +--org.apache.commons.net.io.DotTerminatedMessageWriter
DotTerminatedMessageWriter(Writer output) Creates a DotTerminatedMessageWriter that wraps an existing Writer output destination. |
void | close() Flushes the underlying output, writing all buffered output, but doesn't actually close the underlying stream. |
void | flush() Flushes the underlying output, writing all buffered output. |
void | write(int ch) Writes a character to the output. |
void | write(char[] buffer, int offset, int length) Writes a number of characters from a character array to the output starting from a given offset. |
void | write(char[] buffer) Writes a character array to the output. |
void | write(String string) Writes a String to the output. |
void | write(String string, int offset, int length) Writes part of a String to the output starting from a given offset. |
public DotTerminatedMessageWriter(Writer output)
public void close()
- If an error occurs while writing to the underlying
output or closing the Writer.public void flush()
- If an error occurs while writing to the underlying
output.public void write(String string)
- If an error occurs while writing to the underlying
output.public void write(String string, int offset, int length)
- If an error occurs while writing to the underlying
output.public void write(char[] buffer)
- If an error occurs while writing to the underlying
output.public void write(char[] buffer, int offset, int length)
- If an error occurs while writing to the underlying
output.public void write(int ch)
- If an error occurs while writing to the
underlying output.