Package htsjdk.samtools.util
Class TerminatorlessBlockCompressedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- htsjdk.samtools.util.BlockCompressedOutputStream
-
- htsjdk.samtools.util.TerminatorlessBlockCompressedOutputStream
-
- All Implemented Interfaces:
LocationAware
,Closeable
,Flushable
,AutoCloseable
public class TerminatorlessBlockCompressedOutputStream extends BlockCompressedOutputStream
An extension ofBlockCompressedOutputStream
that doesn't write an empty BGZF block at the end of the stream.
-
-
Constructor Summary
Constructors Constructor Description TerminatorlessBlockCompressedOutputStream(OutputStream os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
close() must be called in order to flush any remaining buffered bytes.-
Methods inherited from class htsjdk.samtools.util.BlockCompressedOutputStream
addIndexer, close, flush, getDefaultCompressionLevel, getDefaultDeflaterFactory, getFilePointer, getPosition, maybeBgzfWrapOutputStream, setDefaultCompressionLevel, setDefaultDeflaterFactory, write, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
TerminatorlessBlockCompressedOutputStream
public TerminatorlessBlockCompressedOutputStream(OutputStream os)
-
-
Method Detail
-
close
public void close() throws IOException
Description copied from class:BlockCompressedOutputStream
close() must be called in order to flush any remaining buffered bytes. An unclosed file will likely be defective.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classBlockCompressedOutputStream
- Throws:
IOException
-
-