public class FastaSequenceReaderWrapper extends Object implements SingleReader, CanReportProgress
| Constructor and Description |
|---|
FastaSequenceReaderWrapper(FastaReader<NucleotideSequence> internalReader) |
FastaSequenceReaderWrapper(FastaReader<NucleotideSequence> internalReader,
boolean replaceWildcards) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getNumberOfReads()
For sequential readers returns the number of reads read till this moment, after reader is exhausted returns total
number of reads.
|
double |
getProgress() |
boolean |
isFinished() |
SingleRead |
take() |
public FastaSequenceReaderWrapper(FastaReader<NucleotideSequence> internalReader)
public FastaSequenceReaderWrapper(FastaReader<NucleotideSequence> internalReader, boolean replaceWildcards)
public double getProgress()
getProgress in interface CanReportProgresspublic boolean isFinished()
isFinished in interface CanReportProgresspublic void close()
close in interface cc.redberry.pipe.OutputPortCloseable<SingleRead>close in interface AutoCloseablepublic long getNumberOfReads()
SequenceReaderThis method is thread-safe.
getNumberOfReads in interface SequenceReader<SingleRead>public SingleRead take()
take in interface cc.redberry.pipe.OutputPort<SingleRead>Copyright © 2018. All rights reserved.