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.
    • Constructor Detail

      • UnixLineEndingInputStream

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

Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.