Class LineOutputStream

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

    public class LineOutputStream
    extends java.io.OutputStream
    Provides an output stream wrapper that detects line feed sequences and replaces them by new ones.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineOutputStream​(java.io.OutputStream out, byte[] ls)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void flush​(boolean addLF)  
      void write​(int b)  
      • Methods inherited from class java.io.OutputStream

        nullOutputStream, write, write
      • Methods inherited from class java.lang.Object

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

      • LS_BINARY

        public static final byte[] LS_BINARY
      • 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

      • LineOutputStream

        public LineOutputStream​(java.io.OutputStream out,
                                byte[] ls)
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • flush

        public void flush​(boolean addLF)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
        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.OutputStream
        Throws:
        java.io.IOException