org.egothor.util
Class Reporter

java.lang.Object
  extended by org.egothor.util.Reporter

public class Reporter
extends java.lang.Object

This class writes some lines of text into a file, rotates after every N reports and NEVER overwrites an older report file.

Author:
galambos

Constructor Summary
Reporter(boolean gzipped, java.lang.String filename, int chunk_len)
          Creates a new instance of Reporter.
 
Method Summary
 void close()
           
 void EOT()
           
 DataOutput os()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reporter

public Reporter(boolean gzipped,
                java.lang.String filename,
                int chunk_len)
Creates a new instance of Reporter. Files are created with filenames of filename-chunk.{gz|rep} Rep-files are not gzipped.

Parameters:
gzipped - whether the product will be a gzipped file
filename - the base filename
chunk_len - how many items in a chunk, non-positive value means unlimited
See Also:
EOT()
Method Detail

os

public final DataOutput os()

EOT

public void EOT()

close

public void close()