org.biojava.bio.structure.align.util
Class SynchronizedOutFile

java.lang.Object
  extended by org.biojava.bio.structure.align.util.SynchronizedOutFile

public class SynchronizedOutFile
extends Object


Constructor Summary
SynchronizedOutFile(File f)
          create a thread safe wrapper for working with this file
SynchronizedOutFile(File f, boolean gzipCompress)
          Create a thread safe wrapper for writing to this file, the file will be gzip compressed.
 
Method Summary
 void close()
           
 void write(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedOutFile

public SynchronizedOutFile(File f,
                           boolean gzipCompress)
                    throws FileNotFoundException,
                           IOException
Create a thread safe wrapper for writing to this file, the file will be gzip compressed.

Parameters:
f - file to write to
gzipCompress - flag if file should be gzip compressed
Throws:
FileNotFoundException
IOException

SynchronizedOutFile

public SynchronizedOutFile(File f)
                    throws FileNotFoundException,
                           IOException
create a thread safe wrapper for working with this file

Parameters:
f -
Throws:
FileNotFoundException
IOException
Method Detail

write

public void write(String message)
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException