Class UnixLineEndingInputStream

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

public class UnixLineEndingInputStream extends InputStream
A filtering input stream that ensures the content will have UNIX-style line endings, LF.
Since:
2.5
  • Constructor Details

    • UnixLineEndingInputStream

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