ning / compress

High-performance, streaming/chunking Java LZF codec, compatible with standard C LZF package
Other
254 stars 40 forks source link

Improve 'DataHandler` callback to allow early termination #25

Closed cowtowncoder closed 11 years ago

cowtowncoder commented 11 years ago

Although content skipping is difficult to support efficiently for 'push' mode (used by Uncompressor interface), it should be possible to at least support early termination. This can be achieved by adding return value for DataHandler.handleData() and Uncompressor.feedCompressedData methods; returning of false indicates desire to terminate the processing to avoid having to access any more source data.

cowtowncoder commented 11 years ago

Implemented.