public class JsonDecoder extends AbstractDecoder implements IDecoder
ctx| Constructor and Description |
|---|
JsonDecoder(EncoderContext ctx)
Creates new
JsonDecoder using the given EncoderContext. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String fieldName,
UaNodeId dataTypeId,
int dimensions) |
ExtensionObject |
getExtensionObject(String fieldName)
getExtensionObject.
|
ExtensionObject[] |
getExtensionObjectArray(String fieldName)
getExtensionObjectArray.
|
Set<String> |
getFieldNames() |
int[] |
getInt32Array_(String fieldName)
getInt32Array_.
|
String |
getJson(String fieldName) |
int |
getJsonArraySize()
Returns the size of the root JSON array or -1 if current root JSON element is not an array.
|
Variant |
getVariant(String fieldName)
getVariant.
|
Variant[] |
getVariantArray(String fieldName)
getVariantArray.
|
void |
popElementStack() |
void |
pushElementStack(int index) |
void |
pushElementStack(String fieldName) |
void |
setReadable(InputStream in) |
assertArrayLength, assertByteStringLength, assertStringLength, emptyArrayForClass, getEncoderContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoolean, getBooleanArray, getByte, getByteArray, getByteString, getByteStringArray, getDataValue, getDataValueArray, getDateTime, getDateTimeArray, getDiagnosticInfo, getDiagnosticInfoArray, getDouble, getDoubleArray, getEncoderContext, getExpandedNodeId, getExpandedNodeIdArray, getFloat, getFloatArray, getGuid, getGuidArray, getInt16, getInt16Array, getInt32, getInt32Array, getInt64, getInt64Array, getLocalizedText, getLocalizedTextArray, getNodeId, getNodeIdArray, getQualifiedName, getQualifiedNameArray, getSByte, getSByteArray, getStatusCode, getStatusCodeArray, getString, getStringArray, getUInt16, getUInt16Array, getUInt32, getUInt32Array, getUInt64, getUInt64Array, getXmlElement, getXmlElementArraypublic JsonDecoder(EncoderContext ctx)
JsonDecoder using the given EncoderContext.public <T> T get(String fieldName, UaNodeId dataTypeId, int dimensions) throws DecodingException
get in interface IDecoderDecodingExceptionpublic ExtensionObject getExtensionObject(String fieldName) throws DecodingException
IDecodergetExtensionObject.
getExtensionObject in interface IDecoderfieldName - a String object.ExtensionObject object.DecodingException - if any.public ExtensionObject[] getExtensionObjectArray(String fieldName) throws DecodingException
IDecodergetExtensionObjectArray.
getExtensionObjectArray in interface IDecoderfieldName - a String object.ExtensionObject objects.DecodingException - if any.public Set<String> getFieldNames() throws DecodingException
DecodingExceptionpublic int[] getInt32Array_(String fieldName) throws DecodingException
IDecodergetInt32Array_.
getInt32Array_ in interface IDecoderfieldName - a String object.DecodingException - if any.public String getJson(String fieldName) throws DecodingException
DecodingExceptionpublic int getJsonArraySize()
throws DecodingException
DecodingExceptionpublic Variant getVariant(String fieldName) throws DecodingException
IDecodergetVariant.
getVariant in interface IDecoderfieldName - a String object.Variant object.DecodingException - if any.public Variant[] getVariantArray(String fieldName) throws DecodingException
IDecodergetVariantArray.
getVariantArray in interface IDecoderfieldName - a String object.Variant objects.DecodingException - if any.public void popElementStack()
public void pushElementStack(int index)
throws DecodingException
DecodingExceptionpublic void pushElementStack(String fieldName) throws DecodingException
DecodingExceptionpublic void setReadable(InputStream in)
Copyright © 2026. All rights reserved.