org.jcon.persistance
Class MetaTOFWriter

java.lang.Object
  extended by org.jcon.persistance.TOFWriter
      extended by org.jcon.persistance.MetaTOFWriter

public class MetaTOFWriter
extends TOFWriter

A writer what writes a TOF files from a MetaTOF structure (MetaBeans and LookupReferences).

Author:
Paul Reavis

Field Summary
 
Fields inherited from class org.jcon.persistance.TOFWriter
indention, lookup, noPointers, outie, outputReadOnlyFields, prettyPrint, references
 
Constructor Summary
MetaTOFWriter(java.io.OutputStream ostream)
          Creates a prettyprinting MetaTOFWriter that writes to the given OutputStream.
MetaTOFWriter(java.io.Writer writer)
          Creates a prettyprinting MetaTOFWriter that writes to the given writer.
 
Method Summary
protected  void writeLookupReference(LookupReference ref)
          Writes a lookup reference to an object.
protected  void writeMetaBean(MetaBean victim)
           
protected  void writeMetaClass(MetaClass victim)
           
protected  void writeMetaImport(MetaImport victim)
           
protected  void writeObjectImpl(java.lang.Object object)
          Writes an object without any prettyprint returns.
 
Methods inherited from class org.jcon.persistance.TOFWriter
close, getNoPointers, getOutputReadOnlyFields, indent, isPrettyPrinting, newLine, setNoPointers, setOutputReadOnlyFields, setPrettyPrinting, undent, writeArrayList, writeBean, writeCharacter, writeClass, writeCog, writeComplexObject, writeLookup, writeMap, writeNumber, writeObject, writeRecord, writeSet, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaTOFWriter

public MetaTOFWriter(java.io.Writer writer)
Creates a prettyprinting MetaTOFWriter that writes to the given writer.


MetaTOFWriter

public MetaTOFWriter(java.io.OutputStream ostream)
Creates a prettyprinting MetaTOFWriter that writes to the given OutputStream.

Method Detail

writeObjectImpl

protected void writeObjectImpl(java.lang.Object object)
                        throws java.io.IOException
Writes an object without any prettyprint returns.

Overrides:
writeObjectImpl in class TOFWriter
Throws:
java.io.IOException

writeLookupReference

protected void writeLookupReference(LookupReference ref)
                             throws java.io.IOException
Writes a lookup reference to an object.

Throws:
java.io.IOException

writeMetaClass

protected void writeMetaClass(MetaClass victim)
                       throws java.io.IOException
Throws:
java.io.IOException

writeMetaImport

protected void writeMetaImport(MetaImport victim)
                        throws java.io.IOException
Throws:
java.io.IOException

writeMetaBean

protected void writeMetaBean(MetaBean victim)
                      throws java.io.IOException
Throws:
java.io.IOException