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 voidclose()voidflush()voidwrite(java.lang.String message)
-
-
-
Constructor Detail
-
SynchronizedOutFile
public SynchronizedOutFile(java.io.File f, boolean gzipCompress) throws java.io.FileNotFoundException, java.io.IOExceptionCreate 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.FileNotFoundExceptionjava.io.IOException
-
SynchronizedOutFile
public SynchronizedOutFile(java.io.File f) throws java.io.FileNotFoundException, java.io.IOExceptioncreate a thread safe wrapper for working with this file- Parameters:
f-- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
-