public class SamStreams
extends java.lang.Object
InputStreams encoding SAM data| Constructor and Description |
|---|
SamStreams() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBAMFile(java.io.InputStream stream) |
static boolean |
isCRAMFile(java.io.InputStream stream) |
static boolean |
isGzippedSAMFile(java.io.InputStream stream)
Checks whether the file is a gzipped sam file.
|
static boolean |
sourceLikeBam(SeekableStream strm) |
static boolean |
sourceLikeCram(SeekableStream strm) |
public static boolean isCRAMFile(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic static boolean isBAMFile(java.io.InputStream stream)
throws java.io.IOException
stream - stream.markSupported() must be truejava.io.IOExceptionpublic static boolean isGzippedSAMFile(java.io.InputStream stream)
public static boolean sourceLikeBam(SeekableStream strm)
public static boolean sourceLikeCram(SeekableStream strm)