public class SamStreams extends Object
InputStream
s encoding SAM dataConstructor 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
IOException
public static boolean isBAMFile(InputStream stream) throws IOException
stream
- stream.markSupported() must be trueIOException
public static boolean isGzippedSAMFile(InputStream stream)
public static boolean sourceLikeBam(SeekableStream strm)
public static boolean sourceLikeCram(SeekableStream strm)