Utility class for the DOF library.
Inheritance Hierarchy
org.opendof.core.oalDOFUtil
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public sealed class DOFUtil
The DOFUtil type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| asciiStringToBytes | Convert a String to an ascii byte array. | |
| bytesToAsciiString(Byte) | Convert an ascii byte array to a String. | |
| bytesToAsciiString(Byte, Int32, Int32) | Convert an ascii byte array to a String. | |
| bytesToHexString(Byte) | Convert a byte array of data to its hexadecimal String representation. | |
| bytesToHexString(Byte, Int32, Int32) | Convert a byte array of data to its hexadecimal String representation. | |
| createAsAssignedOID | Create an AS assigned identifier from its specified parts. | |
| createGuid | Create a type 4 (pseudo randomly generated) UUID as an array of 16 bytes.
| |
| Equals | (Inherited from Object.) | |
| extractNodeID | Extract the node identifier from an AS generated source identifier. | |
| getBoolParam | Get a boolean value from a parameter map. | |
| getErrorMessage | Convenience method to create more readable exception messages. | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| getIntParam | Get an integer value from a parameter map. | |
| getLongParam | Get a long value from a parameter map. | |
| getRandomBytes | Get a secure, random byte array of the specified length. | |
| getRandomInt | Get a secure, random integer within the specified range. | |
| getStringParam | Get a string value from a parameter map. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| hexStringToBytes | Convert a hexadecimal String to a byte array. | |
| isValidAsciiString | Whether the string is a valid ascii string. | |
| isValidHexString | Is the String a valid hex String? Does it contain an even amount of only hex-characters.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
See Also