Class AbstractLineEndingInputStream

java.lang.Object
java.io.InputStream
org.apache.commons.io.input.AbstractLineEndingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
UnixLineEndingInputStream, WindowsLineEndingInputStream

abstract class AbstractLineEndingInputStream extends InputStream
Abstracts UnixLineEndingInputStream and WindowsLineEndingInputStream to reduce duplication.
  • Field Details

    • atEos

      boolean atEos
    • atSlashCr

      boolean atSlashCr
    • atSlashLf

      boolean atSlashLf
    • in

      final InputStream in
    • lineFeedAtEos

      final boolean lineFeedAtEos
  • Constructor Details

    • AbstractLineEndingInputStream

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