DOFString ClassOpenDOF Object Access Library
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

SystemObject
  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

  NameDescription
Public methodDOFString(String)
Create a string value using UTF_8 encoding.
Public methodDOFString(DOFStringType, DOFPacket)
Create a DOFString instance from serial form.
Public methodDOFString(DOFStringType, String)
Create a string value, specifying the type.
Public methodDOFString(Int16, Int32, Byte)
Create a string value from a byte array.
Top
Methods

  NameDescription
Public methodStatic memberarray(IListString)
Convert a list of Java Strings into an array of DOFString.
Public methodStatic memberarray(String)
Convert an array of java Strings into an array of DOFStrings.
Public methodEquals (Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodget
Return the value of the string.
Public methodgetBuffer
Return the encoded buffer of the string.
Public methodgetDOFType
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodisCompatibleWith
Public methodmarshal
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Overrides ObjectToString.)
Top
Fields

  NameDescription
Public fieldStatic memberUS_ASCII
This is the MIB enum entry for US ASCII strings.
Public fieldStatic memberUTF_8
This is the MIB enum entry for UTF-8 strings.
Top
See Also

Reference