org.apache.commons.net.io

Class ToNetASCIIOutputStream

public final class ToNetASCIIOutputStream extends FilterOutputStream

This class wraps an output stream, replacing all singly occurring <LF> (linefeed) characters with <CR><LF> (carriage return followed by linefeed), which is the NETASCII standard for representing a newline. You would use this class to implement ASCII file transfers requiring conversion to NETASCII.

Author: Daniel F. Savarese

Constructor Summary
ToNetASCIIOutputStream(OutputStream output)
Creates a ToNetASCIIOutputStream instance that wraps an existing OutputStream.

Constructor Detail

ToNetASCIIOutputStream

public ToNetASCIIOutputStream(OutputStream output)
Creates a ToNetASCIIOutputStream instance that wraps an existing OutputStream.

Parameters: output The OutputStream to wrap.