Class UnsyncBufferedOutputStream

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

    public class UnsyncBufferedOutputStream
    extends java.io.FilterOutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] buffer  
      protected int count  
      • Fields inherited from class java.io.FilterOutputStream

        out
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()  
      private void flushInternal()  
      void write​(byte[] bytes, int offset, int length)  
      void write​(int oneByte)  
      • Methods inherited from class java.io.FilterOutputStream

        close, write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • buffer

        protected byte[] buffer
      • count

        protected int count
    • Constructor Detail

      • UnsyncBufferedOutputStream

        public UnsyncBufferedOutputStream​(java.io.OutputStream out)
      • UnsyncBufferedOutputStream

        public UnsyncBufferedOutputStream​(java.io.OutputStream out,
                                          int size)
    • Method Detail

      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] bytes,
                          int offset,
                          int length)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(int oneByte)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • flushInternal

        private void flushInternal()
                            throws java.io.IOException
        Throws:
        java.io.IOException