Package org.n52.svalbard.read
Class XmlReader<T>
- java.lang.Object
-
- org.n52.svalbard.read.XmlReader<T>
-
- Direct Known Subclasses:
AbstractFeatureReader,AddressRepresentationReader,ChoiceReader,CodeTypeReader,ContactReader,FreeTextReader,GeographicalNameReader,InpireIDReader,ListReader,NillableReader,PronunciationOfNameReader,ReferenceableReader,ReferenceReader,RelatedPartyReader,ReportingHeaderReader,SpellingOfNameReader,StringReader,SubtagReader,TimeInstantReader,TimePeriodReader
public abstract class XmlReader<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Map<QName,String>attr()protected Iterable<com.google.common.base.Optional<String>>attr(Iterable<QName> names)protected com.google.common.base.Optional<String>attr(String name)protected com.google.common.base.Optional<String>attr(QName qn)protected voidbegin()protected Stringchars()protected <T> Tdelegate(XmlReader<? extends T> reader)protected abstract Tfinish()protected voidignore()Tread(InputStream in)protected voidread(QName name)protected QNametagName()
-
-
-
Method Detail
-
read
public T read(InputStream in) throws XMLStreamException, DecodingException
- Throws:
XMLStreamExceptionDecodingException
-
read
protected void read(QName name) throws XMLStreamException, DecodingException
- Throws:
XMLStreamExceptionDecodingException
-
delegate
protected <T> T delegate(XmlReader<? extends T> reader) throws XMLStreamException, DecodingException
- Throws:
XMLStreamExceptionDecodingException
-
tagName
protected QName tagName()
-
chars
protected String chars() throws XMLStreamException
- Throws:
XMLStreamException
-
begin
protected void begin() throws XMLStreamException, DecodingException- Throws:
XMLStreamExceptionDecodingException
-
finish
protected abstract T finish() throws DecodingException
- Throws:
DecodingException
-
ignore
protected void ignore()
-
-