Package org.fusesource.hawtbuf.proto
Interface Message<T>
-
- All Known Implementing Classes:
BaseMessage,DeferredDecodeMessage
public interface Message<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TassertInitialized()voidclear()Tclone()TmergeFramed(byte[] data)TmergeFramed(java.io.InputStream input)TmergeFramed(Buffer buffer)TmergeFramed(CodedInputStream input)TmergeFrom(T other)TmergeUnframed(byte[] data)TmergeUnframed(java.io.InputStream input)TmergeUnframed(Buffer buffer)TmergeUnframed(CodedInputStream input)intserializedSizeFramed()intserializedSizeUnframed()BuffertoFramedBuffer()byte[]toFramedByteArray()BuffertoUnframedBuffer()byte[]toUnframedByteArray()voidwriteFramed(java.io.OutputStream output)voidwriteFramed(CodedOutputStream output)voidwriteUnframed(java.io.OutputStream output)voidwriteUnframed(CodedOutputStream output)
-
-
-
Method Detail
-
clone
T clone() throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
-
serializedSizeUnframed
int serializedSizeUnframed()
-
serializedSizeFramed
int serializedSizeFramed()
-
clear
void clear()
-
assertInitialized
T assertInitialized() throws UninitializedMessageException
- Throws:
UninitializedMessageException
-
mergeUnframed
T mergeUnframed(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
mergeFramed
T mergeFramed(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
mergeUnframed
T mergeUnframed(Buffer buffer) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
mergeFramed
T mergeFramed(Buffer buffer) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
mergeUnframed
T mergeUnframed(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
mergeFramed
T mergeFramed(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
mergeUnframed
T mergeUnframed(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
mergeFramed
T mergeFramed(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
toUnframedBuffer
Buffer toUnframedBuffer()
-
toFramedBuffer
Buffer toFramedBuffer()
-
toUnframedByteArray
byte[] toUnframedByteArray()
-
toFramedByteArray
byte[] toFramedByteArray()
-
writeUnframed
void writeUnframed(CodedOutputStream output) throws java.io.IOException
- Throws:
java.io.IOException
-
writeFramed
void writeFramed(CodedOutputStream output) throws java.io.IOException
- Throws:
java.io.IOException
-
writeUnframed
void writeUnframed(java.io.OutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-
writeFramed
void writeFramed(java.io.OutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-
-