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
  • Constructor Details

    • WindowsLineEndingInputStream

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