Class JsoniterAny
java.lang.Object
de.oktoflow.platform.support.json.jackson.JsoniterAny
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.json.JsonIterator
public class JsoniterAny
extends Object
implements de.iip_ecosphere.platform.support.json.JsonIterator
Wraps a Jsoniter into a JsonIterator. May need performance optimization, e.g., pooling.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.json.JsonIterator
de.iip_ecosphere.platform.support.json.JsonIterator.EntryIterator, de.iip_ecosphere.platform.support.json.JsonIterator.ValueType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()private voidcollectAll(String name, com.jsoniter.any.Any any, Map<String, Object> fields) Collects all (nested) entries for fieldname-anyinresult.booleancontainsKey(String key) de.iip_ecosphere.platform.support.json.JsonIterator.EntryIteratorentries()de.iip_ecosphere.platform.support.json.JsonIteratorget(int index) de.iip_ecosphere.platform.support.json.JsonIteratorintsize()byte[]slice(byte[] data, de.iip_ecosphere.platform.support.json.JsonIterator iter) booleandoublefloatintlongtoString()de.iip_ecosphere.platform.support.json.JsonIterator.ValueType
-
Field Details
-
LAZY_ANY_CLS
-
LAZY_ANY_HEAD_FIELD
-
LAZY_ANY_TAIL_FIELD
-
IMPL_TYPE2TYPE
private static final Map<com.jsoniter.ValueType,de.iip_ecosphere.platform.support.json.JsonIterator.ValueType> IMPL_TYPE2TYPE -
any
private com.jsoniter.any.Any any
-
-
Constructor Details
-
JsoniterAny
JsoniterAny(com.jsoniter.any.Any any) Creates a wrapping instance.- Parameters:
any- the instance to wrap
-
-
Method Details
-
valueType
public de.iip_ecosphere.platform.support.json.JsonIterator.ValueType valueType()- Specified by:
valueTypein interfacede.iip_ecosphere.platform.support.json.JsonIterator
-
containsKey
- Specified by:
containsKeyin interfacede.iip_ecosphere.platform.support.json.JsonIterator
-
get
- Specified by:
getin interfacede.iip_ecosphere.platform.support.json.JsonIterator
-
slice
public byte[] slice(byte[] data, de.iip_ecosphere.platform.support.json.JsonIterator iter) throws IOException - Specified by:
slicein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
size
public int size()- Specified by:
sizein interfacede.iip_ecosphere.platform.support.json.JsonIterator
-
get
public de.iip_ecosphere.platform.support.json.JsonIterator get(int index) - Specified by:
getin interfacede.iip_ecosphere.platform.support.json.JsonIterator
-
entries
public de.iip_ecosphere.platform.support.json.JsonIterator.EntryIterator entries()- Specified by:
entriesin interfacede.iip_ecosphere.platform.support.json.JsonIterator
-
getAnyKey
- Specified by:
getAnyKeyin interfacede.iip_ecosphere.platform.support.json.JsonIterator
-
toString
-
toStringValue
- Specified by:
toStringValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
toDoubleValue
- Specified by:
toDoubleValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
toFloatValue
- Specified by:
toFloatValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
toLongValue
- Specified by:
toLongValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
toBooleanValue
- Specified by:
toBooleanValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
toIntValue
- Specified by:
toIntValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
toBigIntegerValue
- Specified by:
toBigIntegerValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
toBigDecimalValue
- Specified by:
toBigDecimalValuein interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
asMap
- Specified by:
asMapin interfacede.iip_ecosphere.platform.support.json.JsonIterator- Throws:
IOException
-
collectAll
Collects all (nested) entries for fieldname-anyinresult.- Parameters:
name- the name of the fieldany- the value of the fieldfields- the fields representing the parent of this field, to be modified as a side effect
-