Interface StreamHandler


public interface StreamHandler
Handles a response stream.
Author:
AO Industries, Inc.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the output to write to.
    void
    onDumpSize(long dumpSize)
    Called once the dump size is known and before the stream is obtained.
  • Method Details

    • onDumpSize

      void onDumpSize(long dumpSize) throws IOException
      Called once the dump size is known and before the stream is obtained.
      Parameters:
      dumpSize - The number of bytes that will be transferred or -1 if unknown
      Throws:
      IOException
    • getOut

      OutputStream getOut() throws IOException
      Gets the output to write to. This output stream will neither be flushed nor closed.
      Throws:
      IOException