Package io.protostuff
Class GraphProtostuffOutput
- All Implemented Interfaces:
Output
A ProtostuffOutput w/c can handle cyclic dependencies when serializing objects with graph transformations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
A trimed-down version of IdentityHashMap w/c caters to the specific needs ofinvalid reference
GraphOutput
-
Field Summary
FieldsFields inherited from class io.protostuff.FilterOutput
output
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> void
writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) Writes an object(using its schema) field.Methods inherited from class io.protostuff.FilterOutput
writeBool, writeByteArray, writeByteRange, writeBytes, writeBytes, writeDouble, writeEnum, writeFixed32, writeFixed64, writeFloat, writeInt32, writeInt64, writeSFixed32, writeSFixed64, writeSInt32, writeSInt64, writeString, writeUInt32, writeUInt64
-
Field Details
-
references
-
refCount
private int refCount
-
-
Constructor Details
-
GraphProtostuffOutput
-
GraphProtostuffOutput
-
-
Method Details
-
writeObject
public <T> void writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) throws IOException Description copied from interface:Output
Writes an object(using its schema) field.- Specified by:
writeObject
in interfaceOutput
- Overrides:
writeObject
in classFilterOutput<ProtostuffOutput>
- Throws:
IOException
-