ByteBuffer.getHexDump()

View: New views
2 Messages — Rating Filter:   Alert me  

ByteBuffer.getHexDump()

by Sergey Mamitko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

What is main idea to print word "empty" in method ByteBuffer.getHexDump-> ByteBufferHexDumper.getHexdump if buffer is empty?
In this case I need additionally check size of buffer before using that method.

MINA 1.1.7

-------------------------
Sergey Mamitko
ISD, http://www.isd.dp.ua/index.html.en

Re: ByteBuffer.getHexDump()

by Emmanuel Lecharny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sergey Mamitko wrote:
> Hello,
>
> What is main idea to print word "empty" in method ByteBuffer.getHexDump-> ByteBufferHexDumper.getHexdump if buffer is empty?
> In this case I need additionally check size of buffer before using that method.
>  
This method has mainly been written to provide some useful debugging
information, so maybe printing empty instead of is better (note the
missing word between 'of' and 'is' :)

--
--
cordialement, regards,
Emmanuel Le'charny
www.iktek.com
directory.apache.org


LightInTheBox - Buy quality products at wholesale price