Package blbutil

Class BGZIPOutputStream

java.lang.Object
java.io.OutputStream
blbutil.BGZIPOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public final class BGZIPOutputStream extends OutputStream

Class BGZIPOutputStream is an output stream filter that performs BGZIP compression.

The GZIP file format specification is described RFC 1952 and the BGZIP file format specification is described in the Sequence Alignment/Map Format Specification

Instances of class BGZIPOutputStream are not thread safe.

  • Constructor Details

    • BGZIPOutputStream

      public BGZIPOutputStream(OutputStream os, boolean writeEmptyBlock)
      Creates a new BGZIPOutputStream instance that writes to the specified output stream.
      Parameters:
      os - the output stream
      writeEmptyBlock - true if the close() method will write an empty BGZIP block to the end of the stream
      Throws:
      NullPointerException - if os == null
  • Method Details