Class 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 file
      SynchronizedOutFile​(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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 to
        gzipCompress - 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
    • Method Detail

      • write

        public void write​(java.lang.String message)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException