org.fusesource.hawtbuf.proto
Class MessageBufferSupport
java.lang.Object
org.fusesource.hawtbuf.proto.MessageBufferSupport
public final class MessageBufferSupport
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORZEN_ERROR_MESSAGE
public static final String FORZEN_ERROR_MESSAGE
- See Also:
- Constant Field Values
MessageBufferSupport
public MessageBufferSupport()
toUnframedBuffer
public static Buffer toUnframedBuffer(MessageBuffer message)
toFramedBuffer
public static Buffer toFramedBuffer(MessageBuffer message)
writeMessage
public static void writeMessage(CodedOutputStream output,
int tag,
MessageBuffer message)
throws IOException
- Throws:
IOException
computeMessageSize
public static int computeMessageSize(int tag,
MessageBuffer message)
readFrame
public static Buffer readFrame(InputStream input)
throws IOException
- Throws:
IOException
readRawVarint32
public static int readRawVarint32(InputStream is)
throws IOException
- Read a raw Varint from the stream. If larger than 32 bits, discard the
upper bits.
- Throws:
IOException
readRawByte
public static byte readRawByte(InputStream is)
throws IOException
- Throws:
IOException
addAll
public static <T> void addAll(Iterable<T> values,
Collection<? super T> list)
Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.