public class XmlStreamWritingContext extends org.n52.iceland.util.XmlFactories implements AutoCloseable
| Constructor and Description |
|---|
XmlStreamWritingContext(OutputStream stream,
BiFunction<XmlStreamWriterKey,XmlStreamWritingContext,Optional<ElementXmlStreamWriter>> writerProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
declareNamespace(String prefix,
String namespace) |
void |
dispatch(XMLEvent event) |
void |
endDocument() |
void |
flush() |
<X,Y> Function<X,Y> |
identity(Function<X,Y> t) |
void |
startDocument() |
void |
write(Reader in) |
<T> void |
write(T object) |
void |
write(XMLEventReader reader) |
public XmlStreamWritingContext(OutputStream stream, BiFunction<XmlStreamWriterKey,XmlStreamWritingContext,Optional<ElementXmlStreamWriter>> writerProvider) throws XMLStreamException
XMLStreamExceptionpublic <T> void write(T object)
throws XMLStreamException,
org.n52.svalbard.encode.exception.EncodingException
XMLStreamExceptionorg.n52.svalbard.encode.exception.EncodingExceptionpublic void write(Reader in) throws XMLStreamException
XMLStreamExceptionpublic void write(XMLEventReader reader) throws XMLStreamException
XMLStreamExceptionpublic boolean declareNamespace(String prefix, String namespace) throws XMLStreamException
XMLStreamExceptionpublic void startDocument()
throws XMLStreamException
XMLStreamExceptionpublic void endDocument()
throws XMLStreamException
XMLStreamExceptionpublic void dispatch(XMLEvent event) throws XMLStreamException
XMLStreamExceptionpublic void close()
throws XMLStreamException
close in interface AutoCloseableXMLStreamExceptionpublic void flush()
throws XMLStreamException
XMLStreamExceptionCopyright © 2016–2021 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.