Class BlockOutputStream

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

    public class BlockOutputStream
    extends java.lang.Object
    implements java.io.Closeable, java.io.Flushable
    • Constructor Detail

      • BlockOutputStream

        public BlockOutputStream​(java.io.OutputStream output)
    • Method Detail

      • setCompress

        public void setCompress​(java.lang.String s)
      • write

        public void write​(FileBlock block)
                   throws java.io.IOException
        Write a block with the stream's default compression flag
        Throws:
        java.io.IOException
      • write

        public void write​(FileBlock block,
                          CompressFlags compression)
                   throws java.io.IOException
        Write a specific block with a specific compression flags
        Throws:
        java.io.IOException
      • flush

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