org.codehaus.activesoap.util
Class DelegateXMLStreamWriter

java.lang.Object
  extended byorg.codehaus.activesoap.util.DelegateXMLStreamWriter
All Implemented Interfaces:
XMLStreamWriter
Direct Known Subclasses:
DocumentFilterXMLStreamWriter, LoggingXMLStreamWriter

public abstract class DelegateXMLStreamWriter
extends Object
implements XMLStreamWriter

A Delegate implementation of XMLStreamWriter which delegates all the methods to a child instance - useful for implementing filters.

Version:
$Revision: 1.3 $

Constructor Summary
DelegateXMLStreamWriter(XMLStreamWriter delegate)
           
 
Method Summary
 void close()
           
 void flush()
           
 NamespaceContext getNamespaceContext()
           
 String getPrefix(String s)
           
 Object getProperty(String s)
           
 void setDefaultNamespace(String s)
           
 void setNamespaceContext(NamespaceContext namespaceContext)
           
 void setPrefix(String s, String s1)
           
 void writeAttribute(String s, String s1)
           
 void writeAttribute(String s, String s1, String s2)
           
 void writeAttribute(String s, String s1, String s2, String s3)
           
 void writeCData(String s)
           
 void writeCharacters(char[] chars, int i, int i1)
           
 void writeCharacters(String s)
           
 void writeComment(String s)
           
 void writeDefaultNamespace(String s)
           
 void writeDTD(String s)
           
 void writeEmptyElement(String s)
           
 void writeEmptyElement(String s, String s1)
           
 void writeEmptyElement(String s, String s1, String s2)
           
 void writeEndDocument()
           
 void writeEndElement()
           
 void writeEntityRef(String s)
           
 void writeNamespace(String s, String s1)
           
 void writeProcessingInstruction(String s)
           
 void writeProcessingInstruction(String s, String s1)
           
 void writeStartDocument()
           
 void writeStartDocument(String s)
           
 void writeStartDocument(String s, String s1)
           
 void writeStartElement(String s)
           
 void writeStartElement(String s, String s1)
           
 void writeStartElement(String s, String s1, String s2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateXMLStreamWriter

public DelegateXMLStreamWriter(XMLStreamWriter delegate)
Method Detail

close

public void close()
           throws XMLStreamException
Specified by:
close in interface XMLStreamWriter
Throws:
XMLStreamException

flush

public void flush()
           throws XMLStreamException
Specified by:
flush in interface XMLStreamWriter
Throws:
XMLStreamException

getNamespaceContext

public NamespaceContext getNamespaceContext()
Specified by:
getNamespaceContext in interface XMLStreamWriter

getPrefix

public String getPrefix(String s)
                 throws XMLStreamException
Specified by:
getPrefix in interface XMLStreamWriter
Throws:
XMLStreamException

getProperty

public Object getProperty(String s)
                   throws IllegalArgumentException
Specified by:
getProperty in interface XMLStreamWriter
Throws:
IllegalArgumentException

setDefaultNamespace

public void setDefaultNamespace(String s)
                         throws XMLStreamException
Specified by:
setDefaultNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

setNamespaceContext

public void setNamespaceContext(NamespaceContext namespaceContext)
                         throws XMLStreamException
Specified by:
setNamespaceContext in interface XMLStreamWriter
Throws:
XMLStreamException

setPrefix

public void setPrefix(String s,
                      String s1)
               throws XMLStreamException
Specified by:
setPrefix in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String s,
                           String s1)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String s,
                           String s1,
                           String s2)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String s,
                           String s1,
                           String s2,
                           String s3)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeCData

public void writeCData(String s)
                throws XMLStreamException
Specified by:
writeCData in interface XMLStreamWriter
Throws:
XMLStreamException

writeCharacters

public void writeCharacters(char[] chars,
                            int i,
                            int i1)
                     throws XMLStreamException
Specified by:
writeCharacters in interface XMLStreamWriter
Throws:
XMLStreamException

writeCharacters

public void writeCharacters(String s)
                     throws XMLStreamException
Specified by:
writeCharacters in interface XMLStreamWriter
Throws:
XMLStreamException

writeComment

public void writeComment(String s)
                  throws XMLStreamException
Specified by:
writeComment in interface XMLStreamWriter
Throws:
XMLStreamException

writeDefaultNamespace

public void writeDefaultNamespace(String s)
                           throws XMLStreamException
Specified by:
writeDefaultNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

writeDTD

public void writeDTD(String s)
              throws XMLStreamException
Specified by:
writeDTD in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String s)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String s,
                              String s1)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String s,
                              String s1,
                              String s2)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEndDocument

public void writeEndDocument()
                      throws XMLStreamException
Specified by:
writeEndDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeEndElement

public void writeEndElement()
                     throws XMLStreamException
Specified by:
writeEndElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeEntityRef

public void writeEntityRef(String s)
                    throws XMLStreamException
Specified by:
writeEntityRef in interface XMLStreamWriter
Throws:
XMLStreamException

writeNamespace

public void writeNamespace(String s,
                           String s1)
                    throws XMLStreamException
Specified by:
writeNamespace in interface XMLStreamWriter
Throws:
XMLStreamException

writeProcessingInstruction

public void writeProcessingInstruction(String s)
                                throws XMLStreamException
Specified by:
writeProcessingInstruction in interface XMLStreamWriter
Throws:
XMLStreamException

writeProcessingInstruction

public void writeProcessingInstruction(String s,
                                       String s1)
                                throws XMLStreamException
Specified by:
writeProcessingInstruction in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument()
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String s)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartDocument

public void writeStartDocument(String s,
                               String s1)
                        throws XMLStreamException
Specified by:
writeStartDocument in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String s)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String s,
                              String s1)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String s,
                              String s1,
                              String s2)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException


Copyright © 2004-2007 LogicBlaze, Inc.. All Rights Reserved.