Package org.biojava.nbio.genome.io.fastq
Class SangerFastqWriter
- java.lang.Object
-
- org.biojava.nbio.genome.io.fastq.SangerFastqWriter
-
- All Implemented Interfaces:
FastqWriter
public final class SangerFastqWriter extends java.lang.ObjectWriter forFastqVariant.FASTQ_SANGERformatted sequences.- Since:
- 3.0.3
-
-
Constructor Summary
Constructors Constructor Description SangerFastqWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.Appendable>
Tappend(T appendable, java.lang.Iterable<Fastq> fastq)Append the specified FASTQ formatted sequences to the specified appendable.<T extends java.lang.Appendable>
Tappend(T appendable, Fastq... fastq)Append the specified FASTQ formatted sequences to the specified appendable.protected Fastqconvert(Fastq fastq)Convert the specified FASTQ formatted sequence if necessary.voidwrite(java.io.File file, java.lang.Iterable<Fastq> fastq)Write the specified FASTQ formatted sequences to the specified file.voidwrite(java.io.File file, Fastq... fastq)Write the specified FASTQ formatted sequences to the specified file.voidwrite(java.io.OutputStream outputStream, java.lang.Iterable<Fastq> fastq)Write the specified FASTQ formatted sequences to the specified output stream.voidwrite(java.io.OutputStream outputStream, Fastq... fastq)Write the specified FASTQ formatted sequences to the specified output stream.
-
-
-
Method Detail
-
convert
protected Fastq convert(Fastq fastq)
Convert the specified FASTQ formatted sequence if necessary.- Parameters:
fastq- FASTQ formatted sequence to convert, must not be null- Returns:
- the specified FASTQ formatted sequence or a new FASTA formatted sequence if conversion is necessary
-
append
public final <T extends java.lang.Appendable> T append(T appendable, Fastq... fastq) throws java.io.IOExceptionDescription copied from interface:FastqWriterAppend the specified FASTQ formatted sequences to the specified appendable.- Specified by:
appendin interfaceFastqWriter- Type Parameters:
T- extends Appendable- Parameters:
appendable- appendable to append the specified FASTQ formatted sequences to, must not be nullfastq- variable number of FASTQ formatted sequences to append, must not be null- Returns:
- the specified appendable with the specified FASTQ formatted sequences appended
- Throws:
java.io.IOException- if an I/O error occurs
-
append
public final <T extends java.lang.Appendable> T append(T appendable, java.lang.Iterable<Fastq> fastq) throws java.io.IOExceptionDescription copied from interface:FastqWriterAppend the specified FASTQ formatted sequences to the specified appendable.- Specified by:
appendin interfaceFastqWriter- Type Parameters:
T- extends Appendable- Parameters:
appendable- appendable to append the specified FASTQ formatted sequences to, must not be nullfastq- zero or more FASTQ formatted sequences to append, must not be null- Returns:
- the specified appendable with the specified FASTQ formatted sequences appended
- Throws:
java.io.IOException- if an I/O error occurs
-
write
public final void write(java.io.File file, Fastq... fastq) throws java.io.IOExceptionDescription copied from interface:FastqWriterWrite the specified FASTQ formatted sequences to the specified file.- Specified by:
writein interfaceFastqWriter- Parameters:
file- file to write to, must not be nullfastq- variable number of FASTQ formatted sequences to write, must not be null- Throws:
java.io.IOException- if an I/O error occurs
-
write
public final void write(java.io.File file, java.lang.Iterable<Fastq> fastq) throws java.io.IOExceptionDescription copied from interface:FastqWriterWrite the specified FASTQ formatted sequences to the specified file.- Specified by:
writein interfaceFastqWriter- Parameters:
file- file to write to, must not be nullfastq- zero or more FASTQ formatted sequences to write, must not be null- Throws:
java.io.IOException- if an I/O error occurs
-
write
public final void write(java.io.OutputStream outputStream, Fastq... fastq) throws java.io.IOExceptionDescription copied from interface:FastqWriterWrite the specified FASTQ formatted sequences to the specified output stream.- Specified by:
writein interfaceFastqWriter- Parameters:
outputStream- output stream to write to, must not be nullfastq- variable number of FASTQ formatted sequences to write, must not be null- Throws:
java.io.IOException- if an I/O error occurs
-
write
public final void write(java.io.OutputStream outputStream, java.lang.Iterable<Fastq> fastq) throws java.io.IOExceptionDescription copied from interface:FastqWriterWrite the specified FASTQ formatted sequences to the specified output stream.- Specified by:
writein interfaceFastqWriter- Parameters:
outputStream- output stream to write to, must not be nullfastq- zero or more FASTQ formatted sequences to write, must not be null- Throws:
java.io.IOException- if an I/O error occurs
-
-