public class SamStreams extends Object
InputStreams encoding SAM data| Constructor and Description |
|---|
SamStreams() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBAMFile(InputStream stream) |
static boolean |
isCRAMFile(InputStream stream) |
static boolean |
isGzippedSAMFile(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(InputStream stream) throws IOException
IOExceptionpublic static boolean isBAMFile(InputStream stream) throws IOException
stream - stream.markSupported() must be trueIOExceptionpublic static boolean isGzippedSAMFile(InputStream stream)
public static boolean sourceLikeBam(SeekableStream strm)
public static boolean sourceLikeCram(SeekableStream strm)