Class AutoCRLFOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class AutoCRLFOutputStream
    extends OutputStream
    An OutputStream that expands LF to CRLF. Existing CRLF are not expanded to CRCRLF, but retained as is. A binary check on the first RawText.getBufferSize() bytes is performed and in case of binary files, canonicalization is turned off (for the complete file).