Hello Brian, Assuming you're talking about getPrefixedString in AbstractIoBuffer ? you should first call ioBuffer.prefixedDataAvailable(prefixLength) since the method will throw a BufferUnderflowException when not enough data is available.
see http://mina.apache.org/report/trunk/xref/org/apache/mina/common/AbstractIoBuffer.html#1341 I just added some javadoc to the method to clarify this. Maarten On Jan 11, 2008 8:37 PM, Brian74 <[EMAIL PROTECTED]> wrote: > > When using getPrefixedString, how do I know if the entire string has been > extracted? There doesn't seem to be a way to read the prefix length without > pulling it out from the buffer and then I'd have to put it into the buffer > in order for getPrefixedString to work. > -- > View this message in context: > http://www.nabble.com/question-about-getPrefixedString-tp14763708s16868p14763708.html > Sent from the Apache MINA Support Forum mailing list archive at Nabble.com. > >
