Class WindowsLineEndingInputStream

java.lang.Object
java.io.InputStream
org.apache.commons.io.input.WindowsLineEndingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class WindowsLineEndingInputStream extends InputStream
A filtering input stream that ensures the content will have Windows line endings, CRLF.
Since:
2.5
  • Field Details

    • atEos

      private boolean atEos
    • atSlashCr

      private boolean atSlashCr
    • atSlashLf

      private boolean atSlashLf
    • in

      private final InputStream in
    • injectSlashLf

      private boolean injectSlashLf
    • lineFeedAtEos

      private final boolean lineFeedAtEos
  • Constructor Details

    • WindowsLineEndingInputStream

      public WindowsLineEndingInputStream(InputStream in, boolean lineFeedAtEos)
      Constructs an input stream that filters another stream.
      Parameters:
      in - The input stream to wrap.
      lineFeedAtEos - true to ensure that the stream ends with CRLF.
  • Method Details