6341887: Inflater can't handle ByteBuffer - first webrev
Ulf Zibis
Ulf.Zibis at gmx.de
Sat Apr 14 21:33:20 UTC 2012
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
More information about the core-libs-dev
mailing list