abstract IoBuffer org::apache::mina::core::buffer::IoBuffer::putPrefixedString | ( | CharSequence | in, | |
int | prefixLength, | |||
CharsetEncoder | encoder | |||
) | throws CharacterCodingException[pure virtual] |
Writes the content ofininto this buffer as a string which has a 16-bit length field before the actual encoded string, using the specifiedencoder. This method is a shortcut forputPrefixedString(in, prefixLength, 0, encoder).
Parameters:
prefixLength | the length of the length field (1, 2, or 4) |
BufferOverflowException | if the specified string doesn't fit |
Implemented in org::apache::mina::core::buffer::AbstractIoBuffer, and org::apache::mina::core::buffer::IoBufferWrapper.
http://mina2.sourcearchive.com/documentation/2.0.0plus-pdfsg-1/classorg_1_1apache_1_1mina_1_1core_1_1buffer_1_1IoBuffer_171449a71e6d9c09c0a778d0828a8063.html