Package com.aoindustries.aoserv.client
Interface StreamHandler
public interface StreamHandler
Handles a response stream.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptiongetOut()
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
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
Gets the output to write to. This output stream will neither be flushed nor closed.- Throws:
IOException
-