public abstract class BinaryFeatureCodec<T extends Feature> extends java.lang.Object implements FeatureCodec<T,PositionalBufferedStream>
FeatureCodecs that read from PositionalBufferedStreams.| Constructor and Description |
|---|
BinaryFeatureCodec() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(PositionalBufferedStream source)
Adapter method that closes the provided
SOURCE. |
TabixFormat |
getTabixFormat()
Marked as final because binary features could not be tabix indexed
|
boolean |
isDone(PositionalBufferedStream source)
Adapter method that assesses whether the provided
SOURCE has more data. |
LocationAware |
makeIndexableSourceFromStream(java.io.InputStream bufferedInputStream)
PositionalBufferedStream is already LocationAware. |
PositionalBufferedStream |
makeSourceFromStream(java.io.InputStream bufferedInputStream)
Generates a reader of type
SOURCE appropriate for use by this codec from the generic input stream. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanDecode, decode, decodeLoc, getFeatureType, readHeaderpublic PositionalBufferedStream makeSourceFromStream(java.io.InputStream bufferedInputStream)
FeatureCodecSOURCE appropriate for use by this codec from the generic input stream. Implementers should
assume the stream is buffered.makeSourceFromStream in interface FeatureCodec<T extends Feature,PositionalBufferedStream>public LocationAware makeIndexableSourceFromStream(java.io.InputStream bufferedInputStream)
PositionalBufferedStream is already LocationAware.makeIndexableSourceFromStream in interface FeatureCodec<T extends Feature,PositionalBufferedStream>public void close(PositionalBufferedStream source)
FeatureCodecSOURCE.close in interface FeatureCodec<T extends Feature,PositionalBufferedStream>public boolean isDone(PositionalBufferedStream source)
FeatureCodecSOURCE has more data. True if it does, false otherwise.isDone in interface FeatureCodec<T extends Feature,PositionalBufferedStream>public final TabixFormat getTabixFormat()
getTabixFormat in interface FeatureCodec<T extends Feature,PositionalBufferedStream>