public class ContainerHeaderIO
extends java.lang.Object
Constructor and Description |
---|
ContainerHeaderIO() |
Modifier and Type | Method and Description |
---|---|
static Container |
readContainerHeader(int major,
CountingInputStream countingStream)
Reads container header only from a
CountingInputStream . |
static Container |
readContainerHeader(int major,
java.io.InputStream inputStream,
long containerByteOffset)
Reads container header only from an
InputStream . |
static Container |
readContainerHeader(int major,
SeekableStream seekableStream)
Reads container header only from a
SeekableStream . |
static int |
writeContainerHeader(int major,
Container container,
java.io.OutputStream outputStream)
Write CRAM
Container out into the given OutputStream . |
public static Container readContainerHeader(int major, java.io.InputStream inputStream, long containerByteOffset)
InputStream
.major
- the CRAM version to assumeinputStream
- the input stream to read fromcontainerByteOffset
- the byte offset from the start of the streamContainer
object with container header values filled out but empty body (no slices and blocks).public static Container readContainerHeader(int major, SeekableStream seekableStream)
SeekableStream
.major
- the CRAM version to assumeseekableStream
- the seekable input stream to read fromContainer
object with container header values filled out but empty body (no slices and blocks).public static Container readContainerHeader(int major, CountingInputStream countingStream)
CountingInputStream
.major
- the CRAM version to assumecountingStream
- the counting input stream to read fromContainer
object with container header values filled out but empty body (no slices and blocks).public static int writeContainerHeader(int major, Container container, java.io.OutputStream outputStream)
Container
out into the given OutputStream
.major
- CRAM major versioncontainer
- container to be writtenoutputStream
- the output stream to write the container to