Package htsjdk.samtools
Class SamStreams
- java.lang.Object
-
- htsjdk.samtools.SamStreams
-
public class SamStreams extends Object
Utilities related to processing ofInputStream
s encoding SAM data
-
-
Constructor Summary
Constructors Constructor Description SamStreams()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
isBAMFile(InputStream stream)
static boolean
isCRAMFile(InputStream stream)
static boolean
isGzippedSAMFile(InputStream stream)
Deprecated.useIOUtil.isGZIPInputStream(InputStream)
insteadstatic boolean
sourceLikeBam(SeekableStream strm)
static boolean
sourceLikeCram(SeekableStream strm)
-
-
-
Method Detail
-
isCRAMFile
public static boolean isCRAMFile(InputStream stream) throws IOException
- Throws:
IOException
-
isBAMFile
public static boolean isBAMFile(InputStream stream) throws IOException
- Parameters:
stream
- stream.markSupported() must be true- Returns:
- true if this looks like a BAM file.
- Throws:
IOException
-
isGzippedSAMFile
@Deprecated public static boolean isGzippedSAMFile(InputStream stream)
Deprecated.useIOUtil.isGZIPInputStream(InputStream)
insteadChecks whether the file is a gzipped sam file. Returns true if it is and false otherwise.
-
sourceLikeBam
public static boolean sourceLikeBam(SeekableStream strm)
-
sourceLikeCram
public static boolean sourceLikeCram(SeekableStream strm)
-
-