htsjdk.samtools.cram.structure
Class Block
java.lang.Object
htsjdk.samtools.cram.structure.Block
- Direct Known Subclasses:
- CompressionHeaderBLock
public class Block
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
method
public BlockCompressionMethod method
contentType
public BlockContentType contentType
contentId
public int contentId
Block
public Block()
Block
public Block(BlockCompressionMethod method,
BlockContentType contentType,
int contentId,
byte[] rawContent,
byte[] compressedContent)
Block
public Block(java.io.InputStream is,
boolean readContent,
boolean uncompress)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isCompressed
public boolean isCompressed()
isUncompressed
public boolean isUncompressed()
setRawContent
public void setRawContent(byte[] raw)
getRawContent
public byte[] getRawContent()
getRawContentSize
public int getRawContentSize()
setCompressedContent
public void setCompressedContent(byte[] compressed)
getCompressedContent
public byte[] getCompressedContent()
compress
public void compress()
uncompress
public void uncompress()
write
public void write(java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException