Class 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 Detail

      • UnixLineEndingInputStream

        public UnixLineEndingInputStream​(InputStream in,
                                         boolean ensureLineFeedAtEndOfFile)
        Create an input stream that filters another stream
        Parameters:
        in - The input stream to wrap
        ensureLineFeedAtEndOfFile - true to ensure that the file ends with LF