public abstract class AbstractElementXmlStreamWriter extends org.n52.iceland.util.XmlFactories implements ElementXmlStreamWriter
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractElementXmlStreamWriter.ContentWriter |
protected static interface |
AbstractElementXmlStreamWriter.ElementWriter<T> |
| Constructor and Description |
|---|
AbstractElementXmlStreamWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
attr(QName name,
Collection<? extends T> coll,
Function<T,String> mapper) |
protected void |
attr(QName name,
Optional<String> value) |
protected void |
attr(QName name,
String value) |
protected <T> void |
attr(String name,
Collection<? extends T> coll,
Function<T,String> mapper) |
protected void |
attr(String name,
Optional<String> value) |
protected void |
attr(String name,
String value) |
protected void |
attr(String namespace,
String localName,
String value) |
protected static com.google.common.io.BaseEncoding |
base64() |
protected void |
cdata(String value) |
protected void |
chars(String chars) |
protected void |
chars(String chars,
boolean escape) |
protected XmlStreamWritingContext |
context() |
protected <T> void |
delegate(T object) |
protected <T> void |
element(QName name,
AbstractElementXmlStreamWriter.ContentWriter writer) |
protected void |
element(QName name,
OffsetDateTime time) |
protected <T> void |
element(QName name,
Optional<? extends T> elem,
AbstractElementXmlStreamWriter.ElementWriter<? super T> writer) |
protected void |
element(QName name,
Optional<String> value) |
protected void |
element(QName name,
String value) |
protected <T> void |
element(QName name,
T elem,
AbstractElementXmlStreamWriter.ElementWriter<? super T> writer) |
protected void |
empty(QName name) |
protected void |
end(QName name) |
protected static com.google.common.escape.Escaper |
escaper() |
protected void |
flush() |
protected <T> void |
forEach(QName name,
Iterable<? extends T> elements,
AbstractElementXmlStreamWriter.ElementWriter<? super T> writer) |
protected String |
format(OffsetDateTime time) |
protected void |
namespace(String prefix,
String namespace) |
protected void |
schemaLocation(Set<org.n52.shetland.w3c.SchemaLocation> schemaLocations)
Write
SchemaLocations as xsi:schemaLocations attribute to stream |
void |
setContext(XmlStreamWritingContext context) |
protected void |
start(QName name) |
protected void |
start(String namespace,
String localName) |
protected void |
start(String namespace,
String localName,
String prefix) |
protected void |
time(org.n52.shetland.ogc.gml.time.TimeInstant time)
Write
TimeInstant to stream |
protected void |
time(org.n52.shetland.ogc.gml.time.TimePosition time)
Write
TimePosition as ISO 8601 to stream |
protected void |
write(Reader in) |
protected void |
write(XMLEventReader reader) |
protected void |
writeBase64(InputStream data) |
protected void |
writeLink(QName name,
org.n52.shetland.w3c.xlink.Link link) |
protected void |
writeXLinkAttrs(org.n52.shetland.w3c.xlink.Link link) |
protected void |
writeXML(String xml) |
createIndentingTransformer, documentEncoding, documentVersion, eof, eventFactory, inputFactory, outputFactory, transformerFactory, unexpectedTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteElementpublic void setContext(XmlStreamWritingContext context)
setContext in interface ElementXmlStreamWriterprotected XmlStreamWritingContext context()
protected void attr(QName name, String value) throws XMLStreamException
XMLStreamExceptionprotected void attr(QName name, Optional<String> value) throws XMLStreamException
XMLStreamExceptionprotected void attr(String name, Optional<String> value) throws XMLStreamException
XMLStreamExceptionprotected void attr(String name, String value) throws XMLStreamException
XMLStreamExceptionprotected <T> void attr(QName name, Collection<? extends T> coll, Function<T,String> mapper) throws XMLStreamException
XMLStreamExceptionprotected void attr(String namespace, String localName, String value) throws XMLStreamException
XMLStreamExceptionprotected <T> void attr(String name, Collection<? extends T> coll, Function<T,String> mapper) throws XMLStreamException
XMLStreamExceptionprotected void namespace(String prefix, String namespace) throws XMLStreamException
XMLStreamExceptionprotected void start(String namespace, String localName) throws XMLStreamException
XMLStreamExceptionprotected void start(String namespace, String localName, String prefix) throws XMLStreamException
XMLStreamExceptionprotected void start(QName name) throws XMLStreamException
XMLStreamExceptionprotected void empty(QName name) throws XMLStreamException
XMLStreamExceptionprotected void chars(String chars) throws XMLStreamException
XMLStreamExceptionprotected void chars(String chars, boolean escape) throws XMLStreamException
XMLStreamExceptionprotected void end(QName name) throws XMLStreamException
XMLStreamExceptionprotected void write(Reader in) throws XMLStreamException
XMLStreamExceptionprotected void write(XMLEventReader reader) throws XMLStreamException
XMLStreamExceptionprotected void flush()
throws XMLStreamException
XMLStreamExceptionprotected void cdata(String value) throws XMLStreamException
XMLStreamExceptionprotected void writeBase64(InputStream data) throws IOException
IOExceptionprotected void time(org.n52.shetland.ogc.gml.time.TimeInstant time)
throws XMLStreamException
TimeInstant to streamtime - TimeInstant to write to streamXMLStreamException - If an error occurs when writing to OutputStreamprotected void time(org.n52.shetland.ogc.gml.time.TimePosition time)
throws XMLStreamException
TimePosition as ISO 8601 to streamtime - TimePosition to write as ISO 8601 to streamXMLStreamException - If an error occurs when writing to OutputStreamprotected void schemaLocation(Set<org.n52.shetland.w3c.SchemaLocation> schemaLocations) throws XMLStreamException
SchemaLocations as xsi:schemaLocations attribute to streamschemaLocations - SchemaLocations to writeXMLStreamException - If an error occurs when writing to OutputStreamprotected void writeXLinkAttrs(org.n52.shetland.w3c.xlink.Link link)
throws XMLStreamException
XMLStreamExceptionprotected void writeLink(QName name, org.n52.shetland.w3c.xlink.Link link) throws XMLStreamException
XMLStreamExceptionprotected void element(QName name, String value) throws XMLStreamException
XMLStreamExceptionprotected void element(QName name, Optional<String> value) throws XMLStreamException
XMLStreamExceptionprotected void element(QName name, OffsetDateTime time) throws XMLStreamException
XMLStreamExceptionprotected <T> void element(QName name, Optional<? extends T> elem, AbstractElementXmlStreamWriter.ElementWriter<? super T> writer) throws XMLStreamException
XMLStreamExceptionprotected <T> void element(QName name, T elem, AbstractElementXmlStreamWriter.ElementWriter<? super T> writer) throws XMLStreamException
XMLStreamExceptionprotected <T> void element(QName name, AbstractElementXmlStreamWriter.ContentWriter writer) throws XMLStreamException
XMLStreamExceptionprotected <T> void delegate(T object)
throws XMLStreamException,
org.n52.svalbard.encode.exception.EncodingException
XMLStreamExceptionorg.n52.svalbard.encode.exception.EncodingExceptionprotected String format(OffsetDateTime time)
protected <T> void forEach(QName name, Iterable<? extends T> elements, AbstractElementXmlStreamWriter.ElementWriter<? super T> writer) throws XMLStreamException
XMLStreamExceptionprotected void writeXML(String xml) throws XMLStreamException
XMLStreamExceptionprotected static com.google.common.io.BaseEncoding base64()
protected static com.google.common.escape.Escaper escaper()
Copyright © 2016–2021 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.