|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.fastinfoset.stax.events.StAXEventWriter
Constructor Summary | |
StAXEventWriter(javax.xml.stream.XMLStreamWriter streamWriter)
|
Method Summary | |
void |
add(javax.xml.stream.events.XMLEvent event)
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. |
void |
add(javax.xml.stream.XMLEventReader eventReader)
|
void |
close()
Frees any resources associated with this stream |
void |
flush()
Writes any cached events to the underlying output mechanism |
NamespaceContext |
getNamespaceContext()
Returns the current namespace context. |
java.lang.String |
getPrefix(java.lang.String uri)
Gets the prefix the uri is bound to |
void |
setDefaultNamespace(java.lang.String uri)
Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. |
void |
setNamespaceContext(NamespaceContext namespaceContext)
Sets the current namespace context for prefix and uri bindings. |
void |
setPrefix(java.lang.String prefix,
java.lang.String uri)
Sets the prefix the uri is bound to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.stream.XMLEventWriter |
setNamespaceContext |
Constructor Detail |
public StAXEventWriter(javax.xml.stream.XMLStreamWriter streamWriter)
streamWriter
- Method Detail |
public void flush() throws javax.xml.stream.XMLStreamException
flush
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void close() throws javax.xml.stream.XMLStreamException
close
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void add(javax.xml.stream.XMLEventReader eventReader) throws javax.xml.stream.XMLStreamException
add
in interface javax.xml.stream.XMLEventWriter
eventReader
-
javax.xml.stream.XMLStreamException
public void add(javax.xml.stream.events.XMLEvent event) throws javax.xml.stream.XMLStreamException
add
in interface javax.xml.stream.XMLEventWriter
event
-
javax.xml.stream.XMLStreamException
public java.lang.String getPrefix(java.lang.String uri) throws javax.xml.stream.XMLStreamException
getPrefix
in interface javax.xml.stream.XMLEventWriter
uri
- the uri to look up
javax.xml.stream.XMLStreamException
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface javax.xml.stream.XMLEventWriter
public void setDefaultNamespace(java.lang.String uri) throws javax.xml.stream.XMLStreamException
setDefaultNamespace
in interface javax.xml.stream.XMLEventWriter
uri
- the uri to bind to the default namespace
javax.xml.stream.XMLStreamException
public void setNamespaceContext(NamespaceContext namespaceContext) throws javax.xml.stream.XMLStreamException
namespaceContext
- the namespace context to use for this writer
javax.xml.stream.XMLStreamException
public void setPrefix(java.lang.String prefix, java.lang.String uri) throws javax.xml.stream.XMLStreamException
setPrefix
in interface javax.xml.stream.XMLEventWriter
prefix
- the prefix to bind to the uriuri
- the uri to bind to the prefix
javax.xml.stream.XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |