Class SynchronizedOutFile
- java.lang.Object
-
- org.biojava.nbio.structure.align.util.SynchronizedOutFile
-
public class SynchronizedOutFile extends Object
-
-
Constructor Summary
Constructors Constructor Description SynchronizedOutFile(File f)
create a thread safe wrapper for working with this fileSynchronizedOutFile(File f, boolean gzipCompress)
Create a thread safe wrapper for writing to this file, the file will be gzip compressed.
-
-
-
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 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
-
-
Method Detail
-
write
public void write(String message) throws IOException
- Throws:
IOException
-
flush
public void flush() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Throws:
IOException
-
-