Implementation of
org.opendof.core.oal.DOFValue
that supports strings and encoded strings.
NOTE: Typically applications need not be concerned with encodings. The library will automatically
convert DOFString values to the encoding required by a DOF Interface. The exception to this is
when the application deals directly with byte arrays. In that case, knowledge of the the encoding is
necessary in order to correctly convert the byte array to a string value.
Inheritance Hierarchy
org.opendof.core.oal.valueDOFString
Namespace: org.opendof.core.oal.value
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
[SerializableAttribute] public class DOFString : DOFValue, DOFImmutable
The DOFString type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | DOFString(String) | Create a string value using UTF_8 encoding. |
![]() | DOFString(DOFStringType, DOFPacket) | Create a DOFString instance from serial form. |
![]() | DOFString(DOFStringType, String) | Create a string value, specifying the type. |
![]() | DOFString(Int16, Int32, Byte) | Create a string value from a byte array. |
Methods
Name | Description | |
---|---|---|
![]() ![]() | array(IListString) | Convert a list of Java Strings into an array of DOFString. |
![]() ![]() | array(String) | Convert an array of java Strings into an array of DOFStrings. |
![]() | Equals | (Overrides ObjectEquals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | get | Return the value of the string. |
![]() | getBuffer | Return the encoded buffer of the string. |
![]() | getDOFType | |
![]() | GetHashCode | (Overrides ObjectGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | isCompatibleWith | |
![]() | marshal | |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | (Overrides ObjectToString.) |
Fields
Name | Description | |
---|---|---|
![]() ![]() | US_ASCII | This is the MIB enum entry for US ASCII strings. |
![]() ![]() | UTF_8 | This is the MIB enum entry for UTF-8 strings. |
See Also