public final class SangerFastqReader extends 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.
|
<R extends Readable & Closeable> |
parse(com.google.common.io.InputSupplier<R> supplier,
ParseListener listener)
Deprecated.
will be removed in version 1.10, see
FastqReader.parse(Readable,ParseListener) |
void |
parse(Readable readable,
ParseListener listener)
Parse the specified readable.
|
Iterable<Fastq> |
read(File file)
Read zero or more FASTQ formatted sequences from the specified file.
|
Iterable<Fastq> |
read(InputStream inputStream)
Read zero or more FASTQ formatted sequences from the specified input stream.
|
Iterable<Fastq> |
read(URL url)
Read zero or more FASTQ formatted sequences from the specified url.
|
<R extends Readable & Closeable> |
stream(com.google.common.io.InputSupplier<R> supplier,
StreamListener listener)
Deprecated.
will be removed in version 1.10, see
FastqReader.stream(Readable,StreamListener) |
void |
stream(Readable readable,
StreamListener listener)
Stream the specified readable.
|
public SangerFastqReader()
protected FastqVariant getVariant()
public final void parse(Readable readable, ParseListener listener) throws IOException
FastqReader
parse
in interface FastqReader
readable
- readable, must not be nulllistener
- low-level event based parser callback, must not be nullIOException
- if an I/O error occurspublic final <R extends Readable & Closeable> void parse(com.google.common.io.InputSupplier<R> supplier, ParseListener listener) throws IOException
FastqReader.parse(Readable,ParseListener)
supplier
- input supplier, must not be nulllistener
- low-level event based parser callback, must not be nullIOException
- if an I/O error occurspublic final void stream(Readable readable, StreamListener listener) throws IOException
FastqReader
stream
in interface FastqReader
readable
- readable, must not be nulllistener
- event based reader callback, must not be nullIOException
- if an I/O error occurspublic final <R extends Readable & Closeable> void stream(com.google.common.io.InputSupplier<R> supplier, StreamListener listener) throws IOException
FastqReader.stream(Readable,StreamListener)
supplier
- input supplier, must not be nulllistener
- event based reader callback, must not be nullIOException
- if an I/O error occurspublic final Iterable<Fastq> read(File file) throws IOException
read
in interface FastqReader
file
- file to read from, must not be nullIOException
- if an I/O error occurspublic final Iterable<Fastq> read(URL url) throws IOException
read
in interface FastqReader
url
- URL to read from, must not be nullIOException
- if an I/O error occurspublic final Iterable<Fastq> read(InputStream inputStream) throws IOException
read
in interface FastqReader
inputStream
- input stream to read from, must not be nullIOException
- if an I/O error occursCopyright © 2014 BioJava. All rights reserved.