|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.encoding.binary.BinaryDecoder
public class BinaryDecoder
Decodes builtinTypes, structures, enumerations and messages from byte buffer. + Arrays
IDecoder,
BinaryEncoder| Constructor Summary | |
|---|---|
BinaryDecoder(byte[] buf)
Constructor for BinaryDecoder. |
|
BinaryDecoder(byte[] buf,
int off,
int len)
Constructor for BinaryDecoder. |
|
BinaryDecoder(ByteBuffer buf)
Create byte buffer decoder. |
|
BinaryDecoder(IBinaryReadable in)
Constructor for BinaryDecoder. |
|
BinaryDecoder(InputStream is,
int limit)
Constructor for BinaryDecoder. |
|
| Method Summary | ||
|---|---|---|
|
get(String fieldName,
Class<T> clazz)
get. |
|
Object |
getArrayObject(String fieldName,
int builtinTypeId)
getArrayObject. |
|
Boolean |
getBoolean(String fieldName)
getBoolean. |
|
Boolean[] |
getBooleanArray(String fieldName)
getBooleanArray. |
|
UnsignedByte |
getByte(String fieldName)
getByte. |
|
UnsignedByte[] |
getByteArray(String fieldName)
getByteArray. |
|
ByteString |
getByteString(String fieldName)
getByteString. |
|
ByteString[] |
getByteStringArray(String fieldName)
getByteStringArray. |
|
DataValue |
getDataValue(String fieldName)
getDataValue. |
|
DataValue[] |
getDataValueArray(String fieldName)
getDataValueArray. |
|
DateTime |
getDateTime(String fieldName)
getDateTime. |
|
DateTime[] |
getDateTimeArray(String fieldName)
getDateTimeArray. |
|
DiagnosticInfo |
getDiagnosticInfo(String fieldName)
getDiagnosticInfo. |
|
DiagnosticInfo[] |
getDiagnosticInfoArray(String fieldName)
getDiagnosticInfoArray. |
|
Double |
getDouble(String fieldName)
getDouble. |
|
Double[] |
getDoubleArray(String fieldName)
getDoubleArray. |
|
|
getEncodeable(String fieldName,
Class<? extends T> encodeableClass)
getEncodeable. |
|
|
getEncodeableArray(String fieldName,
Class<? extends T> encodeableClass)
getEncodeableArray. |
|
EncoderContext |
getEncoderContext()
getEncoderContext. |
|
|
getEnumeration(String fieldName,
Class<T> enumerationClass)
getEnumeration. |
|
|
getEnumerationArray(String fieldName,
Class<T> enumerationClass)
getEnumerationArray. |
|
ExpandedNodeId |
getExpandedNodeId(String fieldName)
getExpandedNodeId. |
|
ExpandedNodeId[] |
getExpandedNodeIdArray(String fieldName)
getExpandedNodeIdArray. |
|
ExtensionObject |
getExtensionObject(String fieldName)
getExtensionObject. |
|
ExtensionObject[] |
getExtensionObjectArray(String fieldName)
getExtensionObjectArray. |
|
Float |
getFloat(String fieldName)
getFloat. |
|
Float[] |
getFloatArray(String fieldName)
getFloatArray. |
|
UUID |
getGuid(String fieldName)
getGuid. |
|
UUID[] |
getGuidArray(String fieldName)
getGuidArray. |
|
Short |
getInt16(String fieldName)
getInt16. |
|
Short[] |
getInt16Array(String fieldName)
getInt16Array. |
|
Integer |
getInt32(String fieldName)
getInt32. |
|
int[] |
getInt32Array_(String fieldName)
getInt32Array_. |
|
Integer[] |
getInt32Array(String fieldName)
getInt32Array. |
|
Long |
getInt64(String fieldName)
getInt64. |
|
Long[] |
getInt64Array(String fieldName)
getInt64Array. |
|
LocalizedText |
getLocalizedText(String fieldName)
getLocalizedText. |
|
LocalizedText[] |
getLocalizedTextArray(String fieldName)
getLocalizedTextArray. |
|
|
getMessage()
getMessage. |
|
NodeId |
getNodeId(String fieldName)
getNodeId. |
|
NodeId[] |
getNodeIdArray(String fieldName)
getNodeIdArray. |
|
QualifiedName |
getQualifiedName(String fieldName)
getQualifiedName. |
|
QualifiedName[] |
getQualifiedNameArray(String fieldName)
getQualifiedNameArray. |
|
IBinaryReadable |
getReadable()
getReadable. |
|
Byte |
getSByte(String fieldName)
getSByte. |
|
Byte[] |
getSByteArray(String fieldName)
getSByteArray. |
|
Object |
getScalarObject(String fieldName,
int builtinTypeId)
getScalarObject. |
|
StatusCode |
getStatusCode(String fieldName)
getStatusCode. |
|
StatusCode[] |
getStatusCodeArray(String fieldName)
getStatusCodeArray. |
|
String |
getString(String fieldName)
getString. |
|
String[] |
getStringArray(String fieldName)
getStringArray. |
|
Structure |
getStructure(String fieldName)
getStructure. |
|
Structure[] |
getStructureArray(String fieldName)
getStructureArray. |
|
UnsignedShort |
getUInt16(String fieldName)
getUInt16. |
|
UnsignedShort[] |
getUInt16Array(String fieldName)
getUInt16Array. |
|
UnsignedInteger |
getUInt32(String fieldName)
getUInt32. |
|
UnsignedInteger[] |
getUInt32Array(String fieldName)
getUInt32Array. |
|
UnsignedLong |
getUInt64(String fieldName)
getUInt64. |
|
UnsignedLong[] |
getUInt64Array(String fieldName)
getUInt64Array. |
|
Variant |
getVariant(String fieldName)
getVariant. |
|
Variant[] |
getVariantArray(String fieldName)
getVariantArray. |
|
XmlElement |
getXmlElement(String fieldName)
getXmlElement. |
|
XmlElement[] |
getXmlElementArray(String fieldName)
getXmlElementArray. |
|
protected long |
remaining()
remaining. |
|
void |
setEncoderContext(EncoderContext ctx)
setEncoderContext. |
|
void |
setReadable(IBinaryReadable in)
setReadable. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryDecoder(byte[] buf)
Constructor for BinaryDecoder.
buf - an array of byte.
public BinaryDecoder(byte[] buf,
int off,
int len)
Constructor for BinaryDecoder.
buf - an array of byte.off - a int.len - a int.public BinaryDecoder(ByteBuffer buf)
buf - a ByteBuffer object.public BinaryDecoder(IBinaryReadable in)
Constructor for BinaryDecoder.
in - a IBinaryReadable object.
public BinaryDecoder(InputStream is,
int limit)
Constructor for BinaryDecoder.
is - a InputStream object.limit - a int.| Method Detail |
|---|
public <T> T get(String fieldName,
Class<T> clazz)
throws DecodingException
get.
get in interface IDecoderT - a T object.fieldName - a String object.clazz - a Class object.
DecodingException - if any.
public Object getArrayObject(String fieldName,
int builtinTypeId)
throws DecodingException
getArrayObject.
getArrayObject in interface IDecoderfieldName - a String object.builtinTypeId - a int.
Object object.
DecodingException - if any.
public Boolean getBoolean(String fieldName)
throws DecodingException
getBoolean.
getBoolean in interface IDecoderfieldName - a String object.
Boolean object.
DecodingException - if any.
public Boolean[] getBooleanArray(String fieldName)
throws DecodingException
getBooleanArray.
getBooleanArray in interface IDecoderfieldName - a String object.
Boolean objects.
DecodingException - if any.
public UnsignedByte getByte(String fieldName)
throws DecodingException
getByte.
getByte in interface IDecoderfieldName - a String object.
UnsignedByte object.
DecodingException - if any.
public UnsignedByte[] getByteArray(String fieldName)
throws DecodingException
getByteArray.
getByteArray in interface IDecoderfieldName - a String object.
UnsignedByte objects.
DecodingException - if any.
public ByteString getByteString(String fieldName)
throws DecodingException
getByteString.
getByteString in interface IDecoderfieldName - a String object.
DecodingException - if any.
public ByteString[] getByteStringArray(String fieldName)
throws DecodingException
getByteStringArray.
getByteStringArray in interface IDecoderfieldName - a String object.
DecodingException - if any.
public DataValue getDataValue(String fieldName)
throws DecodingException
getDataValue.
getDataValue in interface IDecoderfieldName - a String object.
DataValue object.
DecodingException - if any.
public DataValue[] getDataValueArray(String fieldName)
throws DecodingException
getDataValueArray.
getDataValueArray in interface IDecoderfieldName - a String object.
DataValue objects.
DecodingException - if any.
public DateTime getDateTime(String fieldName)
throws DecodingException
getDateTime.
getDateTime in interface IDecoderfieldName - a String object.
DateTime object.
DecodingException - if any.
public DateTime[] getDateTimeArray(String fieldName)
throws DecodingException
getDateTimeArray.
getDateTimeArray in interface IDecoderfieldName - a String object.
DateTime objects.
DecodingException - if any.
public DiagnosticInfo getDiagnosticInfo(String fieldName)
throws DecodingException
getDiagnosticInfo.
getDiagnosticInfo in interface IDecoderfieldName - a String object.
DiagnosticInfo object.
DecodingException - if any.
public DiagnosticInfo[] getDiagnosticInfoArray(String fieldName)
throws DecodingException
getDiagnosticInfoArray.
getDiagnosticInfoArray in interface IDecoderfieldName - a String object.
DiagnosticInfo objects.
DecodingException - if any.
public Double getDouble(String fieldName)
throws DecodingException
getDouble.
getDouble in interface IDecoderfieldName - a String object.
Double object.
DecodingException - if any.
public Double[] getDoubleArray(String fieldName)
throws DecodingException
getDoubleArray.
getDoubleArray in interface IDecoderfieldName - a String object.
Double objects.
DecodingException - if any.
public <T extends IEncodeable> T getEncodeable(String fieldName,
Class<? extends T> encodeableClass)
throws DecodingException
getEncodeable.
getEncodeable in interface IDecoderT - a T object.fieldName - a String object.encodeableClass - a Class object.
DecodingException - if any.
public <T extends IEncodeable> T[] getEncodeableArray(String fieldName,
Class<? extends T> encodeableClass)
throws DecodingException
getEncodeableArray.
getEncodeableArray in interface IDecoderT - a T object.fieldName - a String object.encodeableClass - a Class object.
DecodingException - if any.public EncoderContext getEncoderContext()
getEncoderContext.
EncoderContext object.
public <T extends Enumeration> T getEnumeration(String fieldName,
Class<T> enumerationClass)
throws DecodingException
getEnumeration.
getEnumeration in interface IDecoderT - a T object.fieldName - a String object.enumerationClass - a Class object.
DecodingException - if any.
public <T extends Enumeration> T[] getEnumerationArray(String fieldName,
Class<T> enumerationClass)
throws DecodingException
getEnumerationArray.
getEnumerationArray in interface IDecoderT - a T object.fieldName - a String object.enumerationClass - a Class object.
DecodingException - if any.
public ExpandedNodeId getExpandedNodeId(String fieldName)
throws DecodingException
getExpandedNodeId.
getExpandedNodeId in interface IDecoderfieldName - a String object.
ExpandedNodeId object.
DecodingException - if any.
public ExpandedNodeId[] getExpandedNodeIdArray(String fieldName)
throws DecodingException
getExpandedNodeIdArray.
getExpandedNodeIdArray in interface IDecoderfieldName - a String object.
ExpandedNodeId objects.
DecodingException - if any.
public ExtensionObject getExtensionObject(String fieldName)
throws DecodingException
getExtensionObject.
getExtensionObject in interface IDecoderfieldName - a String object.
ExtensionObject object.
DecodingException - if any.
public ExtensionObject[] getExtensionObjectArray(String fieldName)
throws DecodingException
getExtensionObjectArray.
getExtensionObjectArray in interface IDecoderfieldName - a String object.
ExtensionObject objects.
DecodingException - if any.
public Float getFloat(String fieldName)
throws DecodingException
getFloat.
getFloat in interface IDecoderfieldName - a String object.
Float object.
DecodingException - if any.
public Float[] getFloatArray(String fieldName)
throws DecodingException
getFloatArray.
getFloatArray in interface IDecoderfieldName - a String object.
Float objects.
DecodingException - if any.
public UUID getGuid(String fieldName)
throws DecodingException
getGuid.
getGuid in interface IDecoderfieldName - a String object.
UUID object.
DecodingException - if any.
public UUID[] getGuidArray(String fieldName)
throws DecodingException
getGuidArray.
getGuidArray in interface IDecoderfieldName - a String object.
UUID objects.
DecodingException - if any.
public Short getInt16(String fieldName)
throws DecodingException
getInt16.
getInt16 in interface IDecoderfieldName - a String object.
Short object.
DecodingException - if any.
public Short[] getInt16Array(String fieldName)
throws DecodingException
getInt16Array.
getInt16Array in interface IDecoderfieldName - a String object.
Short objects.
DecodingException - if any.
public Integer getInt32(String fieldName)
throws DecodingException
getInt32.
getInt32 in interface IDecoderfieldName - a String object.
Integer object.
DecodingException - if any.
public Integer[] getInt32Array(String fieldName)
throws DecodingException
getInt32Array.
getInt32Array in interface IDecoderfieldName - a String object.
Integer objects.
DecodingException - if any.
public int[] getInt32Array_(String fieldName)
throws DecodingException
getInt32Array_.
getInt32Array_ in interface IDecoderfieldName - a String object.
DecodingException - if any.
public Long getInt64(String fieldName)
throws DecodingException
getInt64.
getInt64 in interface IDecoderfieldName - a String object.
Long object.
DecodingException - if any.
public Long[] getInt64Array(String fieldName)
throws DecodingException
getInt64Array.
getInt64Array in interface IDecoderfieldName - a String object.
Long objects.
DecodingException - if any.
public LocalizedText getLocalizedText(String fieldName)
throws DecodingException
getLocalizedText.
getLocalizedText in interface IDecoderfieldName - a String object.
LocalizedText object.
DecodingException - if any.
public LocalizedText[] getLocalizedTextArray(String fieldName)
throws DecodingException
getLocalizedTextArray.
getLocalizedTextArray in interface IDecoderfieldName - a String object.
LocalizedText objects.
DecodingException - if any.
public <T extends IEncodeable> T getMessage()
throws DecodingException
getMessage.
getMessage in interface IDecoderT - a T object.
DecodingException - if any.
public NodeId getNodeId(String fieldName)
throws DecodingException
getNodeId.
getNodeId in interface IDecoderfieldName - a String object.
NodeId object.
DecodingException - if any.
public NodeId[] getNodeIdArray(String fieldName)
throws DecodingException
getNodeIdArray.
getNodeIdArray in interface IDecoderfieldName - a String object.
NodeId objects.
DecodingException - if any.
public QualifiedName getQualifiedName(String fieldName)
throws DecodingException
getQualifiedName.
getQualifiedName in interface IDecoderfieldName - a String object.
QualifiedName object.
DecodingException - if any.
public QualifiedName[] getQualifiedNameArray(String fieldName)
throws DecodingException
getQualifiedNameArray.
getQualifiedNameArray in interface IDecoderfieldName - a String object.
QualifiedName objects.
DecodingException - if any.public IBinaryReadable getReadable()
getReadable.
IBinaryReadable object.
public Byte getSByte(String fieldName)
throws DecodingException
getSByte.
getSByte in interface IDecoderfieldName - a String object.
Byte object.
DecodingException - if any.
public Byte[] getSByteArray(String fieldName)
throws DecodingException
getSByteArray.
getSByteArray in interface IDecoderfieldName - a String object.
Byte objects.
DecodingException - if any.
public Object getScalarObject(String fieldName,
int builtinTypeId)
throws DecodingException
getScalarObject.
getScalarObject in interface IDecoderfieldName - a String object.builtinTypeId - a int.
Object object.
DecodingException - if any.
public StatusCode getStatusCode(String fieldName)
throws DecodingException
getStatusCode.
getStatusCode in interface IDecoderfieldName - a String object.
StatusCode object.
DecodingException - if any.
public StatusCode[] getStatusCodeArray(String fieldName)
throws DecodingException
getStatusCodeArray.
getStatusCodeArray in interface IDecoderfieldName - a String object.
StatusCode objects.
DecodingException - if any.
public String getString(String fieldName)
throws DecodingException
getString.
getString in interface IDecoderfieldName - a String object.
String object.
DecodingException - if any.
public String[] getStringArray(String fieldName)
throws DecodingException
getStringArray.
getStringArray in interface IDecoderfieldName - a String object.
String objects.
DecodingException - if any.
public Structure getStructure(String fieldName)
throws DecodingException
getStructure.
getStructure in interface IDecoderfieldName - a String object.
Structure object.
DecodingException - if any.
public Structure[] getStructureArray(String fieldName)
throws DecodingException
getStructureArray.
getStructureArray in interface IDecoderfieldName - a String object.
Structure objects.
DecodingException - if any.
public UnsignedShort getUInt16(String fieldName)
throws DecodingException
getUInt16.
getUInt16 in interface IDecoderfieldName - a String object.
UnsignedShort object.
DecodingException - if any.
public UnsignedShort[] getUInt16Array(String fieldName)
throws DecodingException
getUInt16Array.
getUInt16Array in interface IDecoderfieldName - a String object.
UnsignedShort objects.
DecodingException - if any.
public UnsignedInteger getUInt32(String fieldName)
throws DecodingException
getUInt32.
getUInt32 in interface IDecoderfieldName - a String object.
UnsignedInteger object.
DecodingException - if any.
public UnsignedInteger[] getUInt32Array(String fieldName)
throws DecodingException
getUInt32Array.
getUInt32Array in interface IDecoderfieldName - a String object.
UnsignedInteger objects.
DecodingException - if any.
public UnsignedLong getUInt64(String fieldName)
throws DecodingException
getUInt64.
getUInt64 in interface IDecoderfieldName - a String object.
UnsignedLong object.
DecodingException - if any.
public UnsignedLong[] getUInt64Array(String fieldName)
throws DecodingException
getUInt64Array.
getUInt64Array in interface IDecoderfieldName - a String object.
UnsignedLong objects.
DecodingException - if any.
public Variant getVariant(String fieldName)
throws DecodingException
getVariant.
getVariant in interface IDecoderfieldName - a String object.
Variant object.
DecodingException - if any.
public Variant[] getVariantArray(String fieldName)
throws DecodingException
getVariantArray.
getVariantArray in interface IDecoderfieldName - a String object.
Variant objects.
DecodingException - if any.
public XmlElement getXmlElement(String fieldName)
throws DecodingException
getXmlElement.
getXmlElement in interface IDecoderfieldName - a String object.
XmlElement object.
DecodingException - if any.
public XmlElement[] getXmlElementArray(String fieldName)
throws DecodingException
getXmlElementArray.
getXmlElementArray in interface IDecoderfieldName - a String object.
XmlElement objects.
DecodingException - if any.public void setEncoderContext(EncoderContext ctx)
setEncoderContext.
ctx - a EncoderContext object.public void setReadable(IBinaryReadable in)
setReadable.
in - a IBinaryReadable object.
protected long remaining()
throws DecodingException
remaining.
DecodingException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||