API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.stream. XMLEventWriter View Source
Author(s)
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
Since
1.6
Version
1.0
Serial
Hierarchy
 XMLEventConsumer
      XMLEventWriter
Subinterfaces
Description
public interface XMLEventWriter
  This is the top level interface for writing XML documents.
Methods
Hide/Show inherited methods
public void add (XMLEvent event) throws XMLStreamException [Specified in XMLEventConsumer]
  Add an event to the output stream Adding a START_ELEMENT will open a new namespace scope that will be closed when the corresponding END_ELEMENT is written.
public void add (XMLEventReader reader) throws XMLStreamException
  Adds an entire stream to an output stream, calls next() on the inputStream argument until hasNext() returns false This should be treated as a convenience method that will perform the following loop over all the events in an event reader and call add on each event.
public void close () throws XMLStreamException
  Frees any resources associated with this stream
public void flush () throws XMLStreamException
  Writes any cached events to the underlying output mechanism
public NamespaceContext getNamespaceContext ()
  Returns the current namespace context.
public String getPrefix (String uri) throws XMLStreamException
  Gets the prefix the uri is bound to
public void setDefaultNamespace (String uri) throws XMLStreamException
  Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair.
public void setNamespaceContext (NamespaceContext context) throws XMLStreamException
  Sets the current namespace context for prefix and uri bindings.
public void setPrefix (String prefix, String uri) throws XMLStreamException
  Sets the prefix the uri is bound to.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar