edu.unc.csbio.util
Class FqWriter

java.lang.Object
  extended by edu.unc.csbio.util.FqWriter

public class FqWriter
extends java.lang.Object

The class to output a fq file

Version:
0.1
Author:
Shunping Huang , Jack Wang

Field Summary
private  java.io.BufferedWriter out
          an output BufferedWriter
 
Constructor Summary
FqWriter(java.lang.String filename, int bufferSize)
          constructor for object FqWriter
 
Method Summary
 void close()
          this method will close BufferedWriter out
 void print(java.lang.String s)
          this method will append a given string to BufferedWriter out , without starting a new line
 void println(java.lang.String s)
          this method will append a given string to BufferedWriter out , then start a new line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private java.io.BufferedWriter out
an output BufferedWriter

Constructor Detail

FqWriter

public FqWriter(java.lang.String filename,
                int bufferSize)
         throws java.io.IOException
constructor for object FqWriter

Parameters:
filename - file name of FqWriter
bufferSize - buffer size of FqWriter
Throws:
java.io.IOException - if an input or output exception occurred
Method Detail

close

public void close()
           throws java.io.IOException
this method will close BufferedWriter out

Throws:
java.io.IOException - if an input or output exception occurred

print

public void print(java.lang.String s)
           throws java.io.IOException
this method will append a given string to BufferedWriter out , without starting a new line

Parameters:
s - string
Throws:
java.io.IOException - if an input or output exception occurred

println

public void println(java.lang.String s)
             throws java.io.IOException
this method will append a given string to BufferedWriter out , then start a new line

Parameters:
s - string
Throws:
java.io.IOException - if an input or output exception occurred