- java.lang.Object
-
- org.xbib.content.core.AbstractXContentParser
-
- org.xbib.content.xml.XmlXContentParser
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.xbib.content.XContentParser
public class XmlXContentParser extends org.xbib.content.core.AbstractXContentParser
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.core.JsonParserparser
-
Constructor Summary
Constructors Constructor Description XmlXContentParser(com.fasterxml.jackson.core.JsonParser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalbigDecimalValue()java.math.BigIntegerbigIntegerValue()byte[]binaryValue()voidclose()org.xbib.content.XContentcontent()java.lang.StringcurrentName()org.xbib.content.XContentParser.TokencurrentToken()protected booleandoBooleanValue()doubledoDoubleValue()floatdoFloatValue()intdoIntValue()longdoLongValue()shortdoShortValue()booleanestimatedNumberType()booleanhasTextCharacters()org.xbib.content.XContentParser.TokennextToken()org.xbib.content.XContentParser.NumberTypenumberType()java.lang.NumbernumberValue()voidskipChildren()java.lang.Stringtext()char[]textCharacters()inttextLength()inttextOffset()
-
-
-
Method Detail
-
content
public org.xbib.content.XContent content()
-
nextToken
public org.xbib.content.XContentParser.Token nextToken() throws java.io.IOException- Throws:
java.io.IOException
-
skipChildren
public void skipChildren() throws java.io.IOException- Throws:
java.io.IOException
-
currentToken
public org.xbib.content.XContentParser.Token currentToken()
-
numberType
public org.xbib.content.XContentParser.NumberType numberType() throws java.io.IOException- Throws:
java.io.IOException
-
estimatedNumberType
public boolean estimatedNumberType()
-
currentName
public java.lang.String currentName() throws java.io.IOException- Throws:
java.io.IOException
-
doBooleanValue
protected boolean doBooleanValue() throws java.io.IOException- Specified by:
doBooleanValuein classorg.xbib.content.core.AbstractXContentParser- Throws:
java.io.IOException
-
text
public java.lang.String text() throws java.io.IOException- Throws:
java.io.IOException
-
hasTextCharacters
public boolean hasTextCharacters()
-
textCharacters
public char[] textCharacters() throws java.io.IOException- Throws:
java.io.IOException
-
textLength
public int textLength() throws java.io.IOException- Throws:
java.io.IOException
-
textOffset
public int textOffset() throws java.io.IOException- Throws:
java.io.IOException
-
numberValue
public java.lang.Number numberValue() throws java.io.IOException- Throws:
java.io.IOException
-
bigIntegerValue
public java.math.BigInteger bigIntegerValue() throws java.io.IOException- Throws:
java.io.IOException
-
bigDecimalValue
public java.math.BigDecimal bigDecimalValue() throws java.io.IOException- Throws:
java.io.IOException
-
doShortValue
public short doShortValue() throws java.io.IOException- Specified by:
doShortValuein classorg.xbib.content.core.AbstractXContentParser- Throws:
java.io.IOException
-
doIntValue
public int doIntValue() throws java.io.IOException- Specified by:
doIntValuein classorg.xbib.content.core.AbstractXContentParser- Throws:
java.io.IOException
-
doLongValue
public long doLongValue() throws java.io.IOException- Specified by:
doLongValuein classorg.xbib.content.core.AbstractXContentParser- Throws:
java.io.IOException
-
doFloatValue
public float doFloatValue() throws java.io.IOException- Specified by:
doFloatValuein classorg.xbib.content.core.AbstractXContentParser- Throws:
java.io.IOException
-
doDoubleValue
public double doDoubleValue() throws java.io.IOException- Specified by:
doDoubleValuein classorg.xbib.content.core.AbstractXContentParser- Throws:
java.io.IOException
-
binaryValue
public byte[] binaryValue() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-