org.jcon.persistance
Class MetaBarsoomWriter

java.lang.Object
  extended by org.jcon.persistance.BarsoomWriter
      extended by org.jcon.persistance.MetaBarsoomWriter

public class MetaBarsoomWriter
extends BarsoomWriter

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

Author:
Paul Reavis

Field Summary
 
Fields inherited from class org.jcon.persistance.BarsoomWriter
compactPrint, indention, outie, outputReadOnlyFields
 
Constructor Summary
MetaBarsoomWriter(java.io.OutputStream ostream)
          Creates a prettyprinting MetaBarsoomWriter that writes to the given OutputStream.
MetaBarsoomWriter(java.io.Writer writer)
          Creates a prettyprinting MetaBarsoomWriter 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.BarsoomWriter
close, flush, getOutputReadOnlyFields, indent, isCompactPrinting, newLine, setCompactPrinting, setOutputReadOnlyFields, undent, writeArrayList, writeBean, writeCharacter, writeClass, writeComplexObject, writeMap, writeNumber, writeObject, writeProperties, writeProperties, writeRecord, writeSet, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaBarsoomWriter

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


MetaBarsoomWriter

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

Throws:
java.io.IOException
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 BarsoomWriter
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