Package io.protostuff

Interface GraphInput

  • All Superinterfaces:
    Input
    All Known Implementing Classes:
    GraphByteArrayInput, GraphCodedInput

    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.
    • 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.