public final class SangerFastqReader
extends java.lang.Object
FastqVariant.FASTQ_SANGER formatted sequences.| Constructor and Description |
|---|
SangerFastqReader() |
| Modifier and Type | Method and Description |
|---|---|
protected FastqVariant |
getVariant()
Return the FASTQ sequence format variant for this reader.
|
void |
parse(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.
|
void |
stream(java.lang.Readable readable,
StreamListener listener)
Stream the specified readable.
|
protected FastqVariant getVariant()
public final void parse(java.lang.Readable readable,
ParseListener listener)
throws java.io.IOException
FastqReaderparse in interface FastqReaderreadable - readable, must not be nulllistener - low-level event based parser callback, must not be nulljava.io.IOException - if an I/O error occurspublic final void stream(java.lang.Readable readable,
StreamListener listener)
throws java.io.IOException
FastqReaderstream in interface FastqReaderreadable - readable, must not be nulllistener - event based reader callback, must not be nulljava.io.IOException - if an I/O error occurspublic final java.lang.Iterable<Fastq> read(java.io.File file) throws java.io.IOException
FastqReaderread in interface FastqReaderfile - file to read from, must not be nulljava.io.IOException - if an I/O error occurspublic final java.lang.Iterable<Fastq> read(java.net.URL url) throws java.io.IOException
FastqReaderread in interface FastqReaderurl - URL to read from, must not be nulljava.io.IOException - if an I/O error occurspublic final java.lang.Iterable<Fastq> read(java.io.InputStream inputStream) throws java.io.IOException
FastqReaderread in interface FastqReaderinputStream - input stream to read from, must not be nulljava.io.IOException - if an I/O error occurs