All Implemented Interfaces:
Runnable
Enclosing class:
FileLogWriter

private static class FileLogWriter.Gzipperextends I2PAppThread
Gzips a rotated log file in the background.
  • Field Details

    • _f

      private final File _f
      The file to compress.
    • _groupReadable

      private final boolean _groupReadable
      True to make the result group readable.
  • Constructor Details

    • Gzipper

      public Gzipper(File f, boolean groupReadable)
      Creates a background thread that gzips one rotated log file.
      Parameters:
      f - the rotated log file to compress
      groupReadable - apply 660 perms to the compressed file
  • Method Details

    • run

      public void run()
      Compress the rotated log file.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class I2PThread
    • compress

      public void compress()
      Compress the log file to a .gz file.