net.sf.sail.core.curnit
Class SAILXMLEncoder

java.lang.Object
  extended by java.beans.Encoder
      extended by java.beans.XMLEncoder
          extended by net.sf.sail.core.curnit.SAILXMLEncoder
Direct Known Subclasses:
CurnitXMLEncoder, PodXMLEncoder

public class SAILXMLEncoder
extends java.beans.XMLEncoder

Our XMLEncoder which adds PeristanceDelegates that we need and the standard XMLEncoder doesn't provide.

Author:
turadg

Field Summary
static java.beans.ExceptionListener haltingExceptionListener
           
 
Constructor Summary
SAILXMLEncoder(java.io.OutputStream out)
           
 
Method Summary
 void closeXML()
          Alternative to close() which closes the XML node and also the OutputStream.
static void registerPersistenceDelegate(java.lang.Class<?> clazz, java.beans.PersistenceDelegate delegate)
           
 
Methods inherited from class java.beans.XMLEncoder
close, flush, getOwner, setOwner, writeExpression, writeObject, writeStatement
 
Methods inherited from class java.beans.Encoder
get, getExceptionListener, getPersistenceDelegate, remove, setExceptionListener, setPersistenceDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

haltingExceptionListener

public static final java.beans.ExceptionListener haltingExceptionListener
Constructor Detail

SAILXMLEncoder

public SAILXMLEncoder(java.io.OutputStream out)
Method Detail

registerPersistenceDelegate

public static void registerPersistenceDelegate(java.lang.Class<?> clazz,
                                               java.beans.PersistenceDelegate delegate)

closeXML

public void closeXML()
              throws java.io.IOException
Alternative to close() which closes the XML node and also the OutputStream. Sometimes we need to close the XML without closing the OutputStream. For example, entries in a ZipOutputStream.

Throws:
java.io.IOException


Copyright © 2004-2008 TELS Center. All Rights Reserved.