All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class FixCRLFOutputStreamextends FilterOutputStream
OutputStream that converts LF to CRLF during streaming. Used when importing .eml files.
  • Field Details

    • previous

      private int previous
      The byte before this one, to recognise a CRLF pair; -1 when there was none
  • Constructor Details

    • FixCRLFOutputStream

      public FixCRLFOutputStream(OutputStream out)
      Create a FixCRLFOutputStream wrapping the given output stream.
      Parameters:
      out - the underlying output stream
  • Method Details