Message can only be created for full byte array. If I want to write a DNS server, I need to allocate a new array for each request. I wanted to use Netty which use a ByteBuf that either provides a reused byte[] or give access to a direct ByteBuffer.
So if was able to create Message from this ByteBuffer I will avoid a new byte[] for each message and have higher performance and less GC.
Feel free to submit a patch.
Ticket moved from /p/dnsjava/feature-requests/23/
If you still think this is an issue/use case, please create a pull request on dnsjava's new home at Github: https://github.com/dnsjava/dnsjava