htsjdk.samtools.cram.structure
Class Block

java.lang.Object
  extended by htsjdk.samtools.cram.structure.Block
Direct Known Subclasses:
CompressionHeaderBLock

public class Block
extends java.lang.Object


Field Summary
 int contentId
           
 BlockContentType contentType
           
 BlockCompressionMethod method
           
 
Constructor Summary
Block()
           
Block(BlockCompressionMethod method, BlockContentType contentType, int contentId, byte[] rawContent, byte[] compressedContent)
           
Block(java.io.InputStream is, boolean readContent, boolean uncompress)
           
 
Method Summary
 void compress()
           
 byte[] getCompressedContent()
           
 byte[] getRawContent()
           
 int getRawContentSize()
           
 boolean isCompressed()
           
 boolean isUncompressed()
           
 void setCompressedContent(byte[] compressed)
           
 void setRawContent(byte[] raw)
           
 java.lang.String toString()
           
 void uncompress()
           
 void write(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

public BlockCompressionMethod method

contentType

public BlockContentType contentType

contentId

public int contentId
Constructor Detail

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
Method Detail

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