FasterXML/aalto-xml — pull request #24 by normanmaurer (2014-08-27 12:11:56+00:00)
Title: Add AsyncInputFeeder.feedInput(ByteBuffer) to allow usage with direct By...

...teBuffers

Motivation:

We are currently looking into using aalot-xml in netty to provide an async XML decoder. The problem is that at the moment it is only possible to feed data via byte[] while we use direct ByteBuffer when reading from the SocketChannel. This means we need to do a memory copy each time we want to decode.

Modifications:

- Add AsyncInputFeeder.feedInput(ByteBuffer) to allow usage withByteBuffers
- Rewrite AsyncByteScanner/AsyncUtfScanner to use a ByteBuffer as internalBuffer

Result:

AsyncInputFeeder can be used with ByteBuffer and byte[].