Class AutoLFOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class AutoLFOutputStream
    extends OutputStream
    An OutputStream that reduces CRLF to LF. Existing single CR are not changed to LF, but retained as is. A binary check on the first 8000 bytes is performed and in case of binary files, canonicalization is turned off (for the complete file).
    Since:
    4.3