|
||||||||||
| 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
public class StAXEventWriter
| Constructor Summary | |
|---|---|
StAXEventWriter(XMLStreamWriter streamWriter)
|
|
| Method Summary | |
|---|---|
void |
add(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(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. |
String |
getPrefix(String uri)
Gets the prefix the uri is bound to |
void |
setDefaultNamespace(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(String prefix,
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 |
| Constructor Detail |
|---|
public StAXEventWriter(XMLStreamWriter streamWriter)
streamWriter - | Method Detail |
|---|
public void flush()
throws XMLStreamException
flush in interface XMLEventWriterXMLStreamException
public void close()
throws XMLStreamException
close in interface XMLEventWriterXMLStreamException
public void add(XMLEventReader eventReader)
throws XMLStreamException
add in interface XMLEventWritereventReader -
XMLStreamException
public void add(XMLEvent event)
throws XMLStreamException
add in interface XMLEventConsumeradd in interface XMLEventWriterevent -
XMLStreamException
public String getPrefix(String uri)
throws XMLStreamException
getPrefix in interface XMLEventWriteruri - the uri to look up
XMLStreamExceptionpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface XMLEventWriter
public void setDefaultNamespace(String uri)
throws XMLStreamException
setDefaultNamespace in interface XMLEventWriteruri - the uri to bind to the default namespace
XMLStreamException
public void setNamespaceContext(NamespaceContext namespaceContext)
throws XMLStreamException
setNamespaceContext in interface XMLEventWriternamespaceContext - the namespace context to use for this writer
XMLStreamException
public void setPrefix(String prefix,
String uri)
throws XMLStreamException
setPrefix in interface XMLEventWriterprefix - the prefix to bind to the uriuri - the uri to bind to the prefix
XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||