com.sun.xml.ws.security.opt.impl.util
Class XMLStreamFilter

java.lang.Object
  extended by com.sun.xml.ws.security.opt.impl.util.XMLStreamFilter
All Implemented Interfaces:
XMLStreamWriter
Direct Known Subclasses:
XMLStreamFilterWithId

public class XMLStreamFilter
extends Object
implements XMLStreamWriter

Author:
K.Venugopal@sun.com

Field Summary
protected  int count
           
protected  NamespaceContextEx nsContext
           
protected  boolean seenFirstElement
           
protected  XMLStreamWriter writer
           
 
Constructor Summary
XMLStreamFilter(XMLStreamWriter writer, NamespaceContextEx nce)
          Creates a new instance of XMLStreamFilter
 
Method Summary
 void close()
           
 void flush()
           
 NamespaceContext getNamespaceContext()
           
 String getPrefix(String string)
           
 Object getProperty(String value)
           
 void setDefaultNamespace(String string)
           
 void setNamespaceContext(NamespaceContext namespaceContext)
           
 void setPrefix(String string, String string0)
           
 void writeAttribute(String string, String string0)
           
 void writeAttribute(String string, String string0, String string1)
           
 void writeAttribute(String string, String string0, String string1, String string2)
           
 void writeCData(String string)
           
 void writeCharacters(char[] c, int index, int len)
           
 void writeCharacters(String string)
           
 void writeComment(String string)
           
 void writeDefaultNamespace(String string)
           
 void writeDTD(String string)
           
 void writeEmptyElement(String string)
           
 void writeEmptyElement(String string, String string0)
           
 void writeEmptyElement(String string, String string0, String string1)
           
 void writeEndDocument()
           
 void writeEndElement()
           
 void writeEntityRef(String string)
           
 void writeNamespace(String string, String string0)
           
 void writeProcessingInstruction(String string)
           
 void writeProcessingInstruction(String string, String string0)
           
 void writeStartDocument()
           
 void writeStartDocument(String string)
           
 void writeStartDocument(String string, String string0)
           
 void writeStartElement(String string)
           
 void writeStartElement(String string, String string0)
           
 void writeStartElement(String string, String string0, String string1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected XMLStreamWriter writer

nsContext

protected NamespaceContextEx nsContext

seenFirstElement

protected boolean seenFirstElement

count

protected int count
Constructor Detail

XMLStreamFilter

public XMLStreamFilter(XMLStreamWriter writer,
                       NamespaceContextEx nce)
                throws XMLStreamException
Creates a new instance of XMLStreamFilter

Throws:
XMLStreamException
Method Detail

getNamespaceContext

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

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

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

writeStartDocument

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

writeCharacters

public void writeCharacters(char[] c,
                            int index,
                            int len)
                     throws XMLStreamException
Specified by:
writeCharacters in interface XMLStreamWriter
Throws:
XMLStreamException

setDefaultNamespace

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

writeCData

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

writeCharacters

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

writeComment

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

writeDTD

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

writeDefaultNamespace

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

writeEmptyElement

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

writeEntityRef

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

writeProcessingInstruction

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

writeStartDocument

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

writeStartElement

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

setNamespaceContext

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

getProperty

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

getPrefix

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

setPrefix

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

writeAttribute

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

writeEmptyElement

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

writeNamespace

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

writeProcessingInstruction

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

writeStartDocument

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

writeStartElement

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

writeAttribute

public void writeAttribute(String string,
                           String string0,
                           String string1)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException

writeEmptyElement

public void writeEmptyElement(String string,
                              String string0,
                              String string1)
                       throws XMLStreamException
Specified by:
writeEmptyElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeStartElement

public void writeStartElement(String string,
                              String string0,
                              String string1)
                       throws XMLStreamException
Specified by:
writeStartElement in interface XMLStreamWriter
Throws:
XMLStreamException

writeAttribute

public void writeAttribute(String string,
                           String string0,
                           String string1,
                           String string2)
                    throws XMLStreamException
Specified by:
writeAttribute in interface XMLStreamWriter
Throws:
XMLStreamException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.