Class NikeFS2RandomAccessStorageImpl.FS2BlockOutputStream

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

    protected class NikeFS2RandomAccessStorageImpl.FS2BlockOutputStream
    extends java.io.OutputStream
    Internal support class implementing an output stream over a list of blocks, as implemented by the enclosing class
    Author:
    Christian W. Guenther (christian@deckfour.org)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FS2BlockOutputStream()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()  
      void flush()  
      void write​(byte[] buffer)  
      void write​(byte[] buffer, int offset, int length)  
      void write​(int value)  
      • Methods inherited from class java.io.OutputStream

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

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FS2BlockOutputStream

        protected FS2BlockOutputStream()
    • Method Detail

      • write

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

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

        public void write​(byte[] buffer)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        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
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable