org.mortbay.util
Class RolloverFileOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--org.mortbay.util.RolloverFileOutputStream
- public class RolloverFileOutputStream
- extends java.io.FilterOutputStream
A File OutputStream that rolls overs.
If the passed filename contains the string "yyyy_mm_dd" on daily intervals.
- Version:
- $Id: RolloverFileOutputStream.java,v 1.9.2.1 2004/02/17 06:33:46 gregwilkins Exp $
- Author:
- Greg Wilkins (gregw)
Methods inherited from class java.io.FilterOutputStream |
flush, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RolloverFileOutputStream
public RolloverFileOutputStream(java.lang.String filename)
throws java.io.IOException
RolloverFileOutputStream
public RolloverFileOutputStream(java.lang.String filename,
boolean append)
throws java.io.IOException
RolloverFileOutputStream
public RolloverFileOutputStream(java.lang.String filename,
boolean append,
int retainDays)
throws java.io.IOException
getFilename
public java.lang.String getFilename()
getDatedFilename
public java.lang.String getDatedFilename()
getRetainDays
public int getRetainDays()
write
public void write(byte[] buf)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
java.io.IOException
write
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
java.io.IOException
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.FilterOutputStream
java.io.IOException
Copyright ? 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.