com.dyuproject.protostuff
Interface GraphInput

All Superinterfaces:
Input

public interface GraphInput
extends Input

An input that is stateful and keeps track of the references. This is useful for updating the reference of the last message (polymorphic) deserialized.

Author:
David Yu
Date created:
Jan 19, 2011

Method Summary
 boolean isCurrentMessageReference()
          Returns true if the last message was read as a reference.
 void updateLast(java.lang.Object morphedMessage, java.lang.Object lastMessage)
          Updates the last reference (the tip/end of the index) kept if the lastMessage was indeed the last message.
 
Methods inherited from interface com.dyuproject.protostuff.Input
handleUnknownField, mergeObject, readBool, readByteArray, readBytes, readDouble, readEnum, readFieldNumber, readFixed32, readFixed64, readFloat, readInt32, readInt64, readSFixed32, readSFixed64, readSInt32, readSInt64, readString, readUInt32, readUInt64, transferByteRangeTo
 

Method Detail

updateLast

void updateLast(java.lang.Object morphedMessage,
                java.lang.Object lastMessage)
Updates the last reference (the tip/end of the index) kept if the lastMessage was indeed the last message.


isCurrentMessageReference

boolean isCurrentMessageReference()
Returns true if the last message was read as a reference.



Copyright © 2009-2014. All Rights Reserved.