Package htsjdk.samtools
Interface CoordinateSortedPairInfoMap.Codec<KEY,REC>
- Enclosing class:
- CoordinateSortedPairInfoMap<KEY,
REC>
public static interface CoordinateSortedPairInfoMap.Codec<KEY,REC>
Client must implement this class, which defines the way in which records are written to and
read from file.
-
Method Summary
Modifier and TypeMethodDescriptiondecode()
Read the next key and record from the input stream and convert into a java object.void
Write object to output stream.void
Where to read encoded input fromvoid
Where to write encoded output
-
Method Details
-
setOutputStream
Where to write encoded output- Parameters:
os
-
-
setInputStream
Where to read encoded input from- Parameters:
is
-
-
encode
Write object to output stream. If the key is part of the record, then there is no need to write it separately. -
decode
Read the next key and record from the input stream and convert into a java object.- Returns:
- null if no more records. Should throw exception if EOF is encountered in the middle of a record.
-