Am 14.04.2012 20:29, schrieb Xueming Shen:
(3) The input part will be tough. I was struggling with if we should have a totally separated subclass, like DeflaterBuffer/InfalterBuffer (or BufferDefalter/Inflater) to only handle everything in ByteBuffer with
Another suggestion: DirectDeflater

methods handles buffer input and output, throw "not supported operation" for those 
"byte[]" methods.
No need for that, if we inherit Deflater + DirectDeflater from AbstractDeflater.
But personally, I more would like the mandation in the spec. Internally we could set a flag, which detects a mixed usage to throw an exception.

-Ulf

Reply via email to