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
(package private)  Pod currentPod
           
static java.beans.ExceptionListener haltingExceptionListener
           
(package private)  java.io.OutputStream myOut
           
(package private) static java.util.Map<java.lang.Class,java.beans.PersistenceDelegate> sailDelegates
           
 
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

myOut

java.io.OutputStream myOut

currentPod

Pod currentPod

haltingExceptionListener

public static final java.beans.ExceptionListener haltingExceptionListener

sailDelegates

static final java.util.Map<java.lang.Class,java.beans.PersistenceDelegate> sailDelegates
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-2004-2006 TELS Center. All Rights Reserved.