com.dyuproject.protostuff
Class GraphCodedInput
java.lang.Object
com.dyuproject.protostuff.FilterInput<CodedInput>
com.dyuproject.protostuff.GraphCodedInput
- All Implemented Interfaces:
- GraphInput, Input, Schema<java.lang.Object>
public final class GraphCodedInput
- extends FilterInput<CodedInput>
- implements GraphInput, Schema<java.lang.Object>
A CodedInput w/c can handle cyclic dependencies when deserializing
objects with graph transformations.
- Author:
- David Yu
- Date created:
- Jan 17, 2011
| Methods inherited from class com.dyuproject.protostuff.FilterInput |
handleUnknownField, readBool, readByteArray, readBytes, readDouble, readEnum, readFixed32, readFixed64, readFloat, readInt32, readInt64, readSFixed32, readSFixed64, readSInt32, readSInt64, readString, readUInt32, readUInt64, transferByteRangeTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.dyuproject.protostuff.Input |
handleUnknownField, readBool, readByteArray, readBytes, readDouble, readEnum, readFixed32, readFixed64, readFloat, readInt32, readInt64, readSFixed32, readSFixed64, readSInt32, readSInt64, readString, readUInt32, readUInt64, transferByteRangeTo |
GraphCodedInput
public GraphCodedInput(CodedInput input)
GraphCodedInput
public GraphCodedInput(CodedInput input,
int initialCapacity)
updateLast
public void updateLast(java.lang.Object morphedMessage,
java.lang.Object lastMessage)
- Specified by:
updateLast in interface GraphInput
isCurrentMessageReference
public boolean isCurrentMessageReference()
- Specified by:
isCurrentMessageReference in interface GraphInput
readFieldNumber
public <T> int readFieldNumber(Schema<T> schema)
throws java.io.IOException
- Specified by:
readFieldNumber in interface Input- Overrides:
readFieldNumber in class FilterInput<CodedInput>
- Throws:
java.io.IOException
mergeObject
public <T> T mergeObject(T value,
Schema<T> schema)
throws java.io.IOException
- Specified by:
mergeObject in interface Input- Overrides:
mergeObject in class FilterInput<CodedInput>
- Throws:
java.io.IOException
getFieldName
public java.lang.String getFieldName(int number)
- Specified by:
getFieldName in interface Schema<java.lang.Object>
getFieldNumber
public int getFieldNumber(java.lang.String name)
- Specified by:
getFieldNumber in interface Schema<java.lang.Object>
isInitialized
public boolean isInitialized(java.lang.Object owner)
- Specified by:
isInitialized in interface Schema<java.lang.Object>
messageFullName
public java.lang.String messageFullName()
- Specified by:
messageFullName in interface Schema<java.lang.Object>
messageName
public java.lang.String messageName()
- Specified by:
messageName in interface Schema<java.lang.Object>
newMessage
public java.lang.Object newMessage()
- Specified by:
newMessage in interface Schema<java.lang.Object>
typeClass
public java.lang.Class<? super java.lang.Object> typeClass()
- Specified by:
typeClass in interface Schema<java.lang.Object>
mergeFrom
public void mergeFrom(Input input,
java.lang.Object message)
throws java.io.IOException
- Specified by:
mergeFrom in interface Schema<java.lang.Object>
- Throws:
java.io.IOException
writeTo
public void writeTo(Output output,
java.lang.Object message)
throws java.io.IOException
- Specified by:
writeTo in interface Schema<java.lang.Object>
- Throws:
java.io.IOException
Copyright © 2009-2014. All Rights Reserved.