Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mortbay.util
Class RolloverFileOutputStream

    java.lang.Object
      java.io.OutputStream
          java.io.FilterOutputStream
              org.mortbay.util.RolloverFileOutputStream

All Implemented Interfaces:
  Closeable, Flushable

    public class RolloverFileOutputStream

extends FilterOutputStream

RolloverFileOutputStream

Author:
  Greg Wilkins

Field Summary

Fields inherited from class java.io.FilterOutputStream
`out`

Constructor Summary
`RolloverFileOutputStream(String filename)`
`RolloverFileOutputStream(String filename, boolean append)`
`RolloverFileOutputStream(String filename, boolean append, int retainDays)`
`RolloverFileOutputStream(String filename, boolean append, int retainDays, TimeZone zone)`

Method Summary
`void` | `close()`
`String` | `getDatedFilename()`
`String` | `getFilename()`
`int` | `getRetainDays()`
`void` | `write(byte[] buf)`
`void` | `write(byte[] buf, int off, int len)`

Methods inherited from class java.io.FilterOutputStream
`flush, write`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RolloverFileOutputStream

    public RolloverFileOutputStream(String filename)
                             throws IOException

Throws:
  `IOException`

### RolloverFileOutputStream

    public RolloverFileOutputStream(String filename,
                                    boolean append)
                             throws IOException

Throws:
  `IOException`

### RolloverFileOutputStream

    public RolloverFileOutputStream(String filename,
                                    boolean append,
                                    int retainDays)
                             throws IOException

Throws:
  `IOException`

### RolloverFileOutputStream

    public RolloverFileOutputStream(String filename,
                                    boolean append,
                                    int retainDays,
                                    TimeZone zone)
                             throws IOException

Throws:
  `IOException`

Method Detail

### getFilename

    public String getFilename()

### getDatedFilename

    public String getDatedFilename()

### getRetainDays

    public int getRetainDays()

### write

    public void write(byte[] buf)
               throws IOException

  Overrides:
    `write` in class `FilterOutputStream`
  Throws:
    `IOException`

### write

    public void write(byte[] buf,
                      int off,
                      int len)
               throws IOException

  Overrides:
    `write` in class `FilterOutputStream`
  Throws:
    `IOException`

### close

    public void close()
               throws IOException

  Specified by:
    `close` in interface `Closeable`
  Overrides:
    `close` in class `FilterOutputStream`
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 Mort Bay Consulting. All Rights Reserved.