public interface DataHandler
Uncompressor
implementations: receives
uncompressed data and processes it appropriately.Modifier and Type | Method and Description |
---|---|
void |
allDataHandled()
Method called after last call to
handleData(byte[], int, int) , for successful
operation, if and when caller is informed about end of content
Note that if an exception thrown by handleData(byte[], int, int) has caused processing
to be aborted, this method might not get called. |
boolean |
handleData(byte[] buffer,
int offset,
int len)
Method called with uncompressed data as it becomes available.
|
boolean handleData(byte[] buffer, int offset, int len) throws IOException
NOTE: return value was added (from void to boolean) in 0.9.9
allDataHandled()
should be called immediately)IOException
void allDataHandled() throws IOException
handleData(byte[], int, int)
, for successful
operation, if and when caller is informed about end of content
Note that if an exception thrown by handleData(byte[], int, int)
has caused processing
to be aborted, this method might not get called.
Implementation may choose to free resources, flush state, or perform
validation at this point.IOException
Copyright © 2016. All rights reserved.