Package com.aoindustries.aoserv.client
Interface StreamHandler
-
public interface StreamHandlerHandles a response stream.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputStreamgetOut()Gets the output to write to.voidonDumpSize(long dumpSize)Called once the dump size is known and before the stream is obtained.
-
-
-
Method Detail
-
onDumpSize
void onDumpSize(long dumpSize) throws IOExceptionCalled once the dump size is known and before the stream is obtained.- Parameters:
dumpSize- The number of bytes that will be transferred or-1if 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
-
-