Class LineInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class LineInputStream
    extends java.io.InputStream
    Provides an input stream wrapper that detects line feed sequences and replaces them by new ones.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte[] LS_NATIVE  
      static byte[] LS_UNIX  
      static byte[] LS_WINDOWS  
    • Constructor Summary

      Constructors 
      Constructor Description
      LineInputStream​(java.io.InputStream in, byte[] ls)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int read()  
      int read​(byte[] b, int off, int len)  
      • Methods inherited from class java.io.InputStream

        available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

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

      • LS_UNIX

        public static final byte[] LS_UNIX
      • LS_WINDOWS

        public static final byte[] LS_WINDOWS
      • LS_NATIVE

        public static final byte[] LS_NATIVE
    • Constructor Detail

      • LineInputStream

        public LineInputStream​(java.io.InputStream in,
                               byte[] ls)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        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