Modifier and Type | Field and Description |
---|---|
private static final boolean | |
private final XMLStreamWriter |
Access | Constructor and Description |
---|---|
public | XMLEventWriterImpl(XMLStreamWriter streamWriter)
Constructs an XMLEventWriterImpl that implements the standard XMLStreamWriter interface. |
Modifier and Type | Method and Description |
---|---|
public void | add(XMLEventReader xMLEventReader)
Implements javax. |
public void | add(XMLEvent xMLEvent)
Implements javax. |
public void | close()
Implements javax. |
public void | flush()
Implements javax. |
public NamespaceContext | getNamespaceContext()
Implements javax. |
public String | Returns: prefix associated with the URI.Namespace URI namespaceURI)Implements javax. |
public void | setDefaultNamespace(String
Namespace URI uri)Implements javax. |
public void | setNamespaceContext(NamespaceContext
Namespace Context namespaceContext)Implements javax. |
public void | setPrefix(String
namespace prefix associated with the uri. prefix, String Namespace URI uri)Implements javax. |
DEBUG | back to summary |
---|---|
private static final boolean DEBUG |
fStreamWriter | back to summary |
---|---|
private final XMLStreamWriter fStreamWriter |
XMLEventWriterImpl | back to summary |
---|---|
public XMLEventWriterImpl(XMLStreamWriter streamWriter) Constructs an XMLEventWriterImpl that implements the standard XMLStreamWriter interface. |
add | back to summary |
---|---|
public void add(XMLEventReader xMLEventReader) throws XMLStreamException Implements javax. Doc from javax. 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.
|
add | back to summary | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public void add(XMLEvent xMLEvent) throws XMLStreamException Implements javax. Doc from javax. 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.
|
close | back to summary |
---|---|
public void close() throws XMLStreamException Implements javax. Doc from javax. Frees any resources associated with this stream
|
flush | back to summary |
---|---|
public void flush() throws XMLStreamException Implements javax. Doc from javax. Writes any cached events to the underlying output mechanism
|
getNamespaceContext | back to summary |
---|---|
public NamespaceContext getNamespaceContext() Implements javax. Doc from javax. Returns the current namespace context. |
getPrefix | back to summary |
---|---|
public String getPrefix(String namespaceURI) throws XMLStreamException Implements javax. Doc from javax. Gets the prefix the uri is bound to
|
setDefaultNamespace | back to summary |
---|---|
public void setDefaultNamespace(String uri) throws XMLStreamException Implements javax. Doc from javax. Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the uri is bound in the root scope.
|
setNamespaceContext | back to summary |
---|---|
public void setNamespaceContext(NamespaceContext namespaceContext) throws XMLStreamException Implements javax. Doc from javax. Sets the current namespace context for prefix and uri bindings. This context becomes the root namespace context for writing and will replace the current root namespace context. Subsequent calls to setPrefix and setDefaultNamespace will bind namespaces using the context passed to the method as the root context for resolving namespaces.
|
setPrefix | back to summary |
---|---|
public void setPrefix(String prefix, String uri) throws XMLStreamException Implements javax. Doc from javax. Sets the prefix the uri is bound to. This prefix is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the prefix is bound in the root scope.
|