public class ChannelBufferUtil extends Object
| Constructor and Description |
|---|
ChannelBufferUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Address |
readAddress(org.jboss.netty.buffer.ChannelBuffer buffer)
Read and create a new Address from a buffer.
|
static String |
readNullTerminatedString(org.jboss.netty.buffer.ChannelBuffer buffer)
Reads a C-String (null terminated) from a buffer.
|
static Tlv |
readTlv(org.jboss.netty.buffer.ChannelBuffer buffer)
Reads a TLV from a buffer.
|
static void |
writeAddress(org.jboss.netty.buffer.ChannelBuffer buffer,
Address value)
Writes an address to a buffer.
|
static void |
writeNullTerminatedString(org.jboss.netty.buffer.ChannelBuffer buffer,
String value)
Writes a C-String (null terminated) to a buffer.
|
static void |
writeTlv(org.jboss.netty.buffer.ChannelBuffer buffer,
Tlv tlv) |
public static Address readAddress(org.jboss.netty.buffer.ChannelBuffer buffer) throws UnrecoverablePduException, RecoverablePduException
buffer - UnrecoverablePduEncodingExceptionRecoverablePduEncodingExceptionUnrecoverablePduExceptionRecoverablePduExceptionpublic static void writeAddress(org.jboss.netty.buffer.ChannelBuffer buffer,
Address value)
throws UnrecoverablePduException,
RecoverablePduException
buffer - value - UnrecoverablePduEncodingExceptionRecoverablePduEncodingExceptionUnrecoverablePduExceptionRecoverablePduExceptionpublic static Tlv readTlv(org.jboss.netty.buffer.ChannelBuffer buffer) throws NotEnoughDataInBufferException
buffer - The buffer to read fromNotEnoughDataInBufferExceptionpublic static void writeTlv(org.jboss.netty.buffer.ChannelBuffer buffer,
Tlv tlv)
throws NotEnoughDataInBufferException
NotEnoughDataInBufferExceptionpublic static void writeNullTerminatedString(org.jboss.netty.buffer.ChannelBuffer buffer,
String value)
throws UnrecoverablePduException
buffer - value - UnsupportedEncodingExceptionUnrecoverablePduExceptionpublic static String readNullTerminatedString(org.jboss.netty.buffer.ChannelBuffer buffer) throws TerminatingNullByteNotFoundException
buffer - TerminatingNullByteNotFoundExceptionCopyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.