Package org.fusesource.hawtbuf.proto
Class DeferredDecodeMessage<T>
- java.lang.Object
-
- org.fusesource.hawtbuf.proto.BaseMessage<T>
-
- org.fusesource.hawtbuf.proto.DeferredDecodeMessage<T>
-
- All Implemented Interfaces:
Message<T>
public abstract class DeferredDecodeMessage<T> extends BaseMessage<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandecodedprotected BufferencodedForm-
Fields inherited from class org.fusesource.hawtbuf.proto.BaseMessage
memoizedSerializedSize
-
-
Constructor Summary
Constructors Constructor Description DeferredDecodeMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleanisDecoded()booleanisEncoded()protected voidload()protected voidloadAndClear()TmergeFramed(CodedInputStream input)TmergeUnframed(Buffer data)BuffertoUnframedBuffer()-
Methods inherited from class org.fusesource.hawtbuf.proto.BaseMessage
addAll, assertInitialized, checktInitialized, clone, computeGroupSize, computeMessageSize, isInitialized, mergeFramed, mergeFramed, mergeFramed, mergeFrom, mergeUnframed, mergeUnframed, missingFields, prefix, readGroup, readRawByte, readRawVarint32, serializedSizeFramed, toFramedBuffer, toFramedByteArray, toUnframedByteArray, writeFramed, writeFramed, writeGroup, writeMessage, writeUnframed, writeUnframed
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fusesource.hawtbuf.proto.Message
mergeUnframed, serializedSizeUnframed
-
-
-
-
Field Detail
-
encodedForm
protected Buffer encodedForm
-
decoded
protected boolean decoded
-
-
Method Detail
-
mergeFramed
public T mergeFramed(CodedInputStream input) throws java.io.IOException
- Specified by:
mergeFramedin interfaceMessage<T>- Overrides:
mergeFramedin classBaseMessage<T>- Throws:
java.io.IOException
-
mergeUnframed
public T mergeUnframed(Buffer data) throws InvalidProtocolBufferException
- Specified by:
mergeUnframedin interfaceMessage<T>- Overrides:
mergeUnframedin classBaseMessage<T>- Throws:
InvalidProtocolBufferException
-
toUnframedBuffer
public Buffer toUnframedBuffer()
- Specified by:
toUnframedBufferin interfaceMessage<T>- Overrides:
toUnframedBufferin classBaseMessage<T>
-
load
protected void load()
- Overrides:
loadin classBaseMessage<T>
-
loadAndClear
protected void loadAndClear()
- Overrides:
loadAndClearin classBaseMessage<T>
-
clear
public void clear()
-
isDecoded
public boolean isDecoded()
-
isEncoded
public boolean isEncoded()
-
-