com.bea.xml.stream
Class XMLEventWriterBase

java.lang.Object
  extended bycom.bea.xml.stream.XMLEventWriterBase
All Implemented Interfaces:
XMLEventConsumer, XMLEventWriter

public class XMLEventWriterBase
extends Object
implements XMLEventWriter, XMLEventConsumer

The base writer class


Field Summary
(package private)  XMLStreamWriter writer
           
 
Constructor Summary
XMLEventWriterBase(XMLStreamWriter writer)
           
 
Method Summary
 void add(XMLEvent e)
           
 void add(XMLEventReader stream)
           
 void addAttribute(Attribute a)
           
 void addCharacters(Characters cd)
           
 void addComment(Comment c)
           
 void addDTD(DTD dtd)
           
 void addEndDocument(EndDocument ed)
           
 void addEntityReference(EntityReference er)
           
 void addNamespace(Namespace ns)
           
 void addProcessingInstruction(ProcessingInstruction pi)
           
 void addStartDocument(StartDocument sd)
           
 void close()
           
 void flush()
           
 NamespaceContext getNamespaceContext()
           
 String getPrefix(String uri)
           
static void main(String[] args)
           
 void setDefaultNamespace(String uri)
           
 void setNamespaceContext(NamespaceContext context)
           
 void setPrefix(String prefix, String uri)
           
 void writeNamespace(Namespace n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

XMLStreamWriter writer
Constructor Detail

XMLEventWriterBase

public XMLEventWriterBase(XMLStreamWriter writer)
Method Detail

flush

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

close

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

addCharacters

public void addCharacters(Characters cd)
                   throws XMLStreamException
Throws:
XMLStreamException

addEntityReference

public void addEntityReference(EntityReference er)
                        throws XMLStreamException
Throws:
XMLStreamException

addProcessingInstruction

public void addProcessingInstruction(ProcessingInstruction pi)
                              throws XMLStreamException
Throws:
XMLStreamException

addComment

public void addComment(Comment c)
                throws XMLStreamException
Throws:
XMLStreamException

addStartDocument

public void addStartDocument(StartDocument sd)
                      throws XMLStreamException
Throws:
XMLStreamException

addEndDocument

public void addEndDocument(EndDocument ed)
                    throws XMLStreamException
Throws:
XMLStreamException

addAttribute

public void addAttribute(Attribute a)
                  throws XMLStreamException
Throws:
XMLStreamException

writeNamespace

public void writeNamespace(Namespace n)
                    throws XMLStreamException
Throws:
XMLStreamException

addNamespace

public void addNamespace(Namespace ns)
                  throws XMLStreamException
Throws:
XMLStreamException

addDTD

public void addDTD(DTD dtd)
            throws XMLStreamException
Throws:
XMLStreamException

add

public void add(XMLEvent e)
         throws XMLStreamException
Specified by:
add in interface XMLEventWriter
Throws:
XMLStreamException

add

public void add(XMLEventReader stream)
         throws XMLStreamException
Specified by:
add in interface XMLEventWriter
Throws:
XMLStreamException

getPrefix

public String getPrefix(String uri)
                 throws XMLStreamException
Specified by:
getPrefix in interface XMLEventWriter
Throws:
XMLStreamException

setPrefix

public void setPrefix(String prefix,
                      String uri)
               throws XMLStreamException
Specified by:
setPrefix in interface XMLEventWriter
Throws:
XMLStreamException

setDefaultNamespace

public void setDefaultNamespace(String uri)
                         throws XMLStreamException
Specified by:
setDefaultNamespace in interface XMLEventWriter
Throws:
XMLStreamException

setNamespaceContext

public void setNamespaceContext(NamespaceContext context)
                         throws XMLStreamException
Specified by:
setNamespaceContext in interface XMLEventWriter
Throws:
XMLStreamException

getNamespaceContext

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

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2004 . All Rights Reserved.