Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.xml.security.utils
Interface XMLWriter


public interface XMLWriter

Method Summary
abstract  void close()
          Close this writer and free any resources associated with the writer.
abstract  void flush()
          flush any cached data to the underlying output mechanism.
abstract  Map getNamespaceMap()
          returns the set of declared prefix -> namespace mappings.
abstract  void setDefaultNamespace(String namespaceURI)
          Defines the default namespace.
abstract  void setDefaultPrefixes(Map prefixMap)
           
abstract  void setNamespaceMap(Map namespaces)
          Defines the set of predeclared prefix -> namespace mappings
abstract  void setPrefix(String prefix, String namespaceURI)
          Defines the prefix to be used for elements in the identified namespace.
abstract  void writeAttribute(String namespaceURI, String localName, QName value)
          writes an attribute that has a QName value to the preceeding start tag, binding the namespaces if necessary.
abstract  void writeAttribute(String namespaceURI, String localName, String value)
          writes an attribute to the preceeding start tag, binding the namespaces if necessary.
abstract  void writeCharacters(QName value)
          writes the QName as CharacterData node to the document.
abstract  void writeCharacters(String value)
          writes a CharacterData node to the document.
abstract  void writeEndElement()
          Writes the end tag for the current Element.
abstract  void writeStartElement(String namespaceURI, String localName)
          writes a Start tag for an element with the provided QName, binding the namespaces if necessary.

 

Method Detail

writeStartElement

void writeStartElement(String namespaceURI,
                       String localName)
                       throws XMLWriterRuntimeException
writes a Start tag for an element with the provided QName, binding the namespaces if necessary.
Parameters:
namespaceURI -
localName -
Throws:
XMLWriterRuntimeException

writeAttribute

void writeAttribute(String namespaceURI,
                    String localName,
                    String value)
                    throws XMLWriterRuntimeException,
                           IllegalStateException
writes an attribute to the preceeding start tag, binding the namespaces if necessary.
Parameters:
namespaceURI -
localName -
value -
Throws:
XMLWriterRuntimeException
IllegalStateException

writeAttribute

void writeAttribute(String namespaceURI,
                    String localName,
                    QName value)
                    throws XMLWriterRuntimeException,
                           IllegalStateException
writes an attribute that has a QName value to the preceeding start tag, binding the namespaces if necessary.
Parameters:
namespaceURI -
localName -
value -
Throws:
XMLWriterRuntimeException
IllegalStateException

writeCharacters

void writeCharacters(String value)
                     throws XMLWriterRuntimeException
writes a CharacterData node to the document.
Parameters:
value -
Throws:
XMLWriterRuntimeException

writeCharacters

void writeCharacters(QName value)
                     throws XMLWriterRuntimeException,
                            IllegalStateException
writes the QName as CharacterData node to the document.
Parameters:
value -
Throws:
XMLWriterRuntimeException
IllegalStateException - if the the namespace has not been bound.

writeEndElement

void writeEndElement()
                     throws XMLWriterRuntimeException
Writes the end tag for the current Element.
Throws:
XMLWriterRuntimeException

setPrefix

void setPrefix(String prefix,
               String namespaceURI)
               throws XMLWriterRuntimeException
Defines the prefix to be used for elements in the identified namespace.
Parameters:
namespaceURI -
prefix -
Throws:
XMLWriterRuntimeException

setDefaultNamespace

void setDefaultNamespace(String namespaceURI)
                         throws XMLWriterRuntimeException
Defines the default namespace.
Parameters:
namespaceURI -
Throws:
XMLWriterRuntimeException

setDefaultPrefixes

void setDefaultPrefixes(Map prefixMap)

getNamespaceMap

Map getNamespaceMap()
returns the set of declared prefix -> namespace mappings.

setNamespaceMap

void setNamespaceMap(Map namespaces)
Defines the set of predeclared prefix -> namespace mappings
Parameters:
namespaces -

flush

void flush()
           throws XMLWriterRuntimeException
flush any cached data to the underlying output mechanism.
Throws:
XMLWriterRuntimeException

close

void close()
           throws XMLWriterRuntimeException
Close this writer and free any resources associated with the writer. This must not close the underlying output stream.
Throws:
XMLWriterRuntimeException

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09