Package org.biojava.nbio.genome.io.fastq
Class IlluminaFastqReader
- java.lang.Object
-
- org.biojava.nbio.genome.io.fastq.IlluminaFastqReader
-
- All Implemented Interfaces:
FastqReader
public final class IlluminaFastqReader extends java.lang.ObjectReader forFastqVariant.FASTQ_ILLUMINAformatted sequences.- Since:
- 3.0.3
-
-
Constructor Summary
Constructors Constructor Description IlluminaFastqReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FastqVariantgetVariant()Return the FASTQ sequence format variant for this reader.voidparse(java.lang.Readable readable, ParseListener listener)Parse the specified readable.java.lang.Iterable<Fastq>read(java.io.File file)Read zero or more FASTQ formatted sequences from the specified file.java.lang.Iterable<Fastq>read(java.io.InputStream inputStream)Read zero or more FASTQ formatted sequences from the specified input stream.java.lang.Iterable<Fastq>read(java.net.URL url)Read zero or more FASTQ formatted sequences from the specified url.voidstream(java.lang.Readable readable, StreamListener listener)Stream the specified readable.
-
-
-
Method Detail
-
getVariant
protected FastqVariant getVariant()
Return the FASTQ sequence format variant for this reader.- Returns:
- the FASTQ sequence format variant for this reader
-
parse
public final void parse(java.lang.Readable readable, ParseListener listener) throws java.io.IOExceptionDescription copied from interface:FastqReaderParse the specified readable.- Specified by:
parsein interfaceFastqReader- Parameters:
readable- readable, must not be nulllistener- low-level event based parser callback, must not be null- Throws:
java.io.IOException- if an I/O error occurs
-
stream
public final void stream(java.lang.Readable readable, StreamListener listener) throws java.io.IOExceptionDescription copied from interface:FastqReaderStream the specified readable.- Specified by:
streamin interfaceFastqReader- Parameters:
readable- readable, must not be nulllistener- event based reader callback, must not be null- Throws:
java.io.IOException- if an I/O error occurs
-
read
public final java.lang.Iterable<Fastq> read(java.io.File file) throws java.io.IOException
Description copied from interface:FastqReaderRead zero or more FASTQ formatted sequences from the specified file.- Specified by:
readin interfaceFastqReader- Parameters:
file- file to read from, must not be null- Returns:
- zero or more FASTQ formatted sequences read from the specified file
- Throws:
java.io.IOException- if an I/O error occurs
-
read
public final java.lang.Iterable<Fastq> read(java.net.URL url) throws java.io.IOException
Description copied from interface:FastqReaderRead zero or more FASTQ formatted sequences from the specified url.- Specified by:
readin interfaceFastqReader- Parameters:
url- URL to read from, must not be null- Returns:
- zero or more FASTQ formatted sequences read from the specified url
- Throws:
java.io.IOException- if an I/O error occurs
-
read
public final java.lang.Iterable<Fastq> read(java.io.InputStream inputStream) throws java.io.IOException
Description copied from interface:FastqReaderRead zero or more FASTQ formatted sequences from the specified input stream.- Specified by:
readin interfaceFastqReader- Parameters:
inputStream- input stream to read from, must not be null- Returns:
- zero or more FASTQ formatted sequences read from the specified input stream
- Throws:
java.io.IOException- if an I/O error occurs
-
-