org.jactr.core.utils
Class RollingFileWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.jactr.core.utils.RollingFileWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class RollingFileWriter
extends java.io.Writer


Constructor Summary
RollingFileWriter(java.io.File directory, java.lang.String fileName)
           
RollingFileWriter(java.io.File directory, java.lang.String fileName, long maxSize, long backups)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RollingFileWriter

public RollingFileWriter(java.io.File directory,
                         java.lang.String fileName)

RollingFileWriter

public RollingFileWriter(java.io.File directory,
                         java.lang.String fileName,
                         long maxSize,
                         long backups)
Method Detail

flush

public void flush()
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException