Class AbstractLineEndingInputStream

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean atEos  
      (package private) boolean atSlashCr  
      (package private) boolean atSlashLf  
      (package private) java.io.InputStream in  
      (package private) boolean lineFeedAtEos  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractLineEndingInputStream​(java.io.InputStream inputStream, boolean lineFeedAtEos)
      Constructs an input stream that filters another stream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes the stream.
      void mark​(int readLimit)
      • Methods inherited from class java.io.InputStream

        available, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • atEos

        boolean atEos
      • atSlashCr

        boolean atSlashCr
      • atSlashLf

        boolean atSlashLf
      • in

        final java.io.InputStream in
      • lineFeedAtEos

        final boolean lineFeedAtEos
    • Constructor Detail

      • AbstractLineEndingInputStream

        AbstractLineEndingInputStream​(java.io.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 Detail

      • close

        public void close()
                   throws java.io.IOException
        Closes the stream. Also closes the underlying stream.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException - If an I/O error occurs.
      • mark

        public void mark​(int readLimit)
        Overrides:
        mark in class java.io.InputStream