Package htsjdk.samtools
Class SAMFileSource
- java.lang.Object
-
- htsjdk.samtools.SAMFileSource
-
public class SAMFileSource extends Object
Represents the origin of a SAM record.
-
-
Constructor Summary
Constructors Constructor Description SAMFileSource(SamReader reader, SAMFileSpan filePointer)
Create a new SAMFileSource with the given reader and file pointer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAMFileSpan
getFilePointer()
A pointer to the region on disk from which the read originated.SamReader
getReader()
Retrieves the reader from which this read was initially retrieved.
-
-
-
Constructor Detail
-
SAMFileSource
public SAMFileSource(SamReader reader, SAMFileSpan filePointer)
Create a new SAMFileSource with the given reader and file pointer.- Parameters:
reader
- reader.filePointer
- File pointer.
-
-
Method Detail
-
getReader
public SamReader getReader()
Retrieves the reader from which this read was initially retrieved.- Returns:
- The reader.
-
getFilePointer
public SAMFileSpan getFilePointer()
A pointer to the region on disk from which the read originated.- Returns:
- A pointer within the file.
-
-