org.fusesource.hawtbuf.proto
Interface PBMessageFactory<Bean extends PBMessage,Buffer extends MessageBuffer>


public interface PBMessageFactory<Bean extends PBMessage,Buffer extends MessageBuffer>

Author:
Hiram Chirino

Method Summary
 Bean create()
           
 Buffer parseFramed(Buffer data)
           
 Buffer parseFramed(byte[] data)
           
 Buffer parseFramed(CodedInputStream data)
           
 Buffer parseFramed(InputStream data)
           
 Buffer parseUnframed(Buffer data)
           
 Buffer parseUnframed(byte[] data)
           
 Bean parseUnframed(CodedInputStream data)
           
 Bean parseUnframed(InputStream data)
           
 

Method Detail

create

Bean create()

parseUnframed

Bean parseUnframed(CodedInputStream data)
                                     throws InvalidProtocolBufferException,
                                            IOException
Throws:
InvalidProtocolBufferException
IOException

parseUnframed

Bean parseUnframed(InputStream data)
                                     throws InvalidProtocolBufferException,
                                            IOException
Throws:
InvalidProtocolBufferException
IOException

parseUnframed

Buffer parseUnframed(Buffer data)
                                           throws InvalidProtocolBufferException
Throws:
InvalidProtocolBufferException

parseUnframed

Buffer parseUnframed(byte[] data)
                                           throws InvalidProtocolBufferException
Throws:
InvalidProtocolBufferException

parseFramed

Buffer parseFramed(CodedInputStream data)
                                         throws InvalidProtocolBufferException,
                                                IOException
Throws:
InvalidProtocolBufferException
IOException

parseFramed

Buffer parseFramed(Buffer data)
                                         throws InvalidProtocolBufferException
Throws:
InvalidProtocolBufferException

parseFramed

Buffer parseFramed(byte[] data)
                                         throws InvalidProtocolBufferException
Throws:
InvalidProtocolBufferException

parseFramed

Buffer parseFramed(InputStream data)
                                         throws InvalidProtocolBufferException,
                                                IOException
Throws:
InvalidProtocolBufferException
IOException


Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.