org.biojava.bio.structure.align.util
Class SynchronizedOutFile
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 togzipCompress
- 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
write
public void write(String message)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException