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

      • WindowsLineEndingInputStream

        public WindowsLineEndingInputStream​(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 CRLF