com.dyuproject.protostuff
Class GraphProtostuffOutput

java.lang.Object
  extended by com.dyuproject.protostuff.FilterOutput<ProtostuffOutput>
      extended by com.dyuproject.protostuff.GraphProtostuffOutput
All Implemented Interfaces:
Output

public final class GraphProtostuffOutput
extends FilterOutput<ProtostuffOutput>

A ProtostuffOutput w/c can handle cyclic dependencies when serializing objects with graph transformations.

Author:
David Yu
Date created:
Dec 10, 2010

Field Summary
 
Fields inherited from class com.dyuproject.protostuff.FilterOutput
output
 
Constructor Summary
GraphProtostuffOutput(ProtostuffOutput output)
           
GraphProtostuffOutput(ProtostuffOutput output, int initialCapacity)
           
 
Method Summary
<T> void
writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated)
           
 
Methods inherited from class com.dyuproject.protostuff.FilterOutput
writeBool, writeByteArray, writeByteRange, writeBytes, writeDouble, writeEnum, writeFixed32, writeFixed64, writeFloat, writeInt32, writeInt64, writeSFixed32, writeSFixed64, writeSInt32, writeSInt64, writeString, writeUInt32, writeUInt64
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphProtostuffOutput

public GraphProtostuffOutput(ProtostuffOutput output)

GraphProtostuffOutput

public GraphProtostuffOutput(ProtostuffOutput output,
                             int initialCapacity)
Method Detail

writeObject

public <T> void writeObject(int fieldNumber,
                            T value,
                            Schema<T> schema,
                            boolean repeated)
                 throws java.io.IOException
Specified by:
writeObject in interface Output
Overrides:
writeObject in class FilterOutput<ProtostuffOutput>
Throws:
java.io.IOException


Copyright © 2009-2014. All Rights Reserved.