Class OpcUaEncodingManager
java.lang.Object
org.eclipse.milo.opcua.stack.core.encoding.OpcUaEncodingManager
- All Implemented Interfaces:
EncodingManager
A singleton
EncodingManager initialized with the default OPC UA encodings.
The "Default Binary" encoding is always registered. The "Default XML" and "Default JSON" encodings are registered if they are found on the classpath at the time the singleton is first instantiated.
-
Method Summary
Modifier and TypeMethodDescription@Nullable DataTypeEncodinggetEncoding(QualifiedName encodingName) static OpcUaEncodingManagerGet the sharedOpcUaEncodingManagerinstance.booleanhasEncoding(QualifiedName encodingName) voidregisterEncoding(DataTypeEncoding encoding) Operation not supported, this instance is immutable.@Nullable DataTypeEncodingremoveEncoding(QualifiedName encodingName) Operation not supported, this instance is immutable.
-
Method Details
-
getInstance
Get the sharedOpcUaEncodingManagerinstance.- Returns:
- the shared
OpcUaEncodingManagerinstance.
-
hasEncoding
- Specified by:
hasEncodingin interfaceEncodingManager
-
getEncoding
- Specified by:
getEncodingin interfaceEncodingManager
-
registerEncoding
Operation not supported, this instance is immutable.- Specified by:
registerEncodingin interfaceEncodingManager- Throws:
UnsupportedOperationException- always, this instance is immutable.
-
removeEncoding
Operation not supported, this instance is immutable.- Specified by:
removeEncodingin interfaceEncodingManager- Throws:
UnsupportedOperationException- always, this instance is immutable.
-