Class ProgressReportingOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
net.shibboleth.idp.installer.ProgressReportingOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ProgressReportingOutputStream extends BufferedOutputStream
A version of BufferedOutputStream which provides some idea of progress.
  • Field Details

    • PROGRESS_EVERY

      private static final int PROGRESS_EVERY
      How much to transfer before we note it.
      See Also:
    • written

      private int written
      How much have we written so far?
    • terminate

      private boolean terminate
      Do we need to output a terminateing newline?
  • Constructor Details

    • ProgressReportingOutputStream

      public ProgressReportingOutputStream(OutputStream outStream)
      Constructor.
      Parameters:
      outStream - what to bracket.
    • ProgressReportingOutputStream

      public ProgressReportingOutputStream(OutputStream outStream, int size)
      Constructor.
      Parameters:
      outStream - what to bracket.
      size - buffer size
  • Method Details