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