Class ReopenableRotatingFileOutputStream

java.lang.Object
java.io.OutputStream
hudson.util.io.ReopenableFileOutputStream
hudson.util.io.ReopenableRotatingFileOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

@Deprecated public class ReopenableRotatingFileOutputStream extends ReopenableFileOutputStream
Deprecated.
due to risk for file leak. Prefer RewindableRotatingFileOutputStream
ReopenableFileOutputStream that does log rotation upon rewind.
Since:
1.416
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • ReopenableRotatingFileOutputStream

      public ReopenableRotatingFileOutputStream(File out, int size)
      Deprecated.
  • Method Details

    • getNumberedFileName

      protected File getNumberedFileName(int n)
      Deprecated.
    • rewind

      public void rewind() throws IOException
      Deprecated.
      Description copied from class: ReopenableFileOutputStream
      In addition to close, ensure that the next "open" would truncate the file.
      Overrides:
      rewind in class ReopenableFileOutputStream
      Throws:
      IOException
    • deleteAll

      public void deleteAll()
      Deprecated.
      Deletes all the log files, including rotated files.