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.14 2005/08/13 00:01:28 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
- Throws:
java.io.IOException
write
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.