public class BinaryDecoder extends AbstractDecoder implements IDecoder
IDecoder,
BinaryEncoderctx| Constructor and Description |
|---|
BinaryDecoder(EncoderContext encoderContext,
byte[] buf)
Constructor for BinaryDecoder.
|
BinaryDecoder(EncoderContext encoderContext,
byte[] buf,
int off,
int len)
Constructor for BinaryDecoder.
|
BinaryDecoder(EncoderContext encoderContext,
ByteBuffer buf)
Create byte buffer decoder.
|
BinaryDecoder(EncoderContext encoderContext,
ByteString buf) |
BinaryDecoder(EncoderContext encoderContext,
ByteString buf,
int off,
int len) |
BinaryDecoder(EncoderContext encoderContext,
IBinaryReadable in)
Constructor for BinaryDecoder.
|
BinaryDecoder(EncoderContext encoderContext,
InputStream is,
int limit)
Constructor for BinaryDecoder.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String fieldName,
UaNodeId dataTypeId,
int dimensions) |
int[] |
getInt32Array_(String fieldName)
getInt32Array_.
|
IBinaryReadable |
getReadable()
getReadable.
|
protected void |
onStructureFieldDecode(FieldSpecification field,
Object fieldValue)
This is intended for internal use, API might change in the future at will.
|
protected long |
remaining()
remaining.
|
com.prosysopc.ua.stack.encoding.binary.BinaryDecoder.ScalarDecoder<?> |
tryFindDecoderWithSpecification(UaDataTypeSpecification specification) |
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, getExtensionObject, getExtensionObjectArray, 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, getVariant, getVariantArray, getXmlElement, getXmlElementArraypublic BinaryDecoder(EncoderContext encoderContext, byte[] buf)
Constructor for BinaryDecoder.
buf - an array of byte.public BinaryDecoder(EncoderContext encoderContext, byte[] buf, int off, int len)
Constructor for BinaryDecoder.
buf - an array of byte.off - a int.len - a int.public BinaryDecoder(EncoderContext encoderContext, ByteBuffer buf)
buf - a ByteBuffer object.public BinaryDecoder(EncoderContext encoderContext, ByteString buf)
public BinaryDecoder(EncoderContext encoderContext, ByteString buf, int off, int len)
public BinaryDecoder(EncoderContext encoderContext, IBinaryReadable in)
Constructor for BinaryDecoder.
in - a IBinaryReadable object.public BinaryDecoder(EncoderContext encoderContext, InputStream is, int limit)
Constructor for BinaryDecoder.
is - a InputStream object.limit - a int.public <T> T get(String fieldName, UaNodeId dataTypeId, int dimensions) throws DecodingException
get in interface IDecoderDecodingExceptionpublic int[] getInt32Array_(String fieldName) throws DecodingException
IDecodergetInt32Array_.
getInt32Array_ in interface IDecoderfieldName - a String object.DecodingException - if any.public IBinaryReadable getReadable()
getReadable.
IBinaryReadable object.public com.prosysopc.ua.stack.encoding.binary.BinaryDecoder.ScalarDecoder<?> tryFindDecoderWithSpecification(UaDataTypeSpecification specification) throws DecodingException
DecodingExceptionprotected void onStructureFieldDecode(FieldSpecification field, Object fieldValue)
ServiceResponses,
where the header is the first field, but the decoding of the rest can potentially fail. And
UABinaryFileDataType does have a header, that defines types for the
UABinaryFileDataType.getBody().protected long remaining()
throws DecodingException
remaining.
DecodingException - if any.Copyright © 2026. All rights reserved.