Class XMLString
- Direct Known Subclasses:
- XMLStringBuffer
Note: Methods that are passed an XMLString structure should consider the contents read-only and not make any modifications to the contents of the buffer. The method receiving this structure should also not modify the offset and length if this structure (or the values of this structure) are passed to another method.
Note: Methods that are passed an XMLString structure are required to copy the information out of the buffer if it is to be saved for use beyond the scope of the method. The contents of the structure are volatile and the contents of the character buffer cannot be assured once the method that is passed this structure returns. Therefore, methods passed this structure should not save any reference to the structure or the character array contained in the structure.
- Author:
- Eric Ye, IBM, Andy Clark, IBM
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Deprecated.Resets all of the values to their defaults.booleanDeprecated.Returns true if the contents of this XMLString structure and the specified string are equal.voidsetValues(char[] ch, int offset, int length) Deprecated.Initializes the contents of the XMLString structure with the specified values.voidDeprecated.Initializes the contents of the XMLString structure with copies of the given string structure.toString()Deprecated.
- 
Field Details- 
chpublic char[] chDeprecated.The character array.
- 
offsetpublic int offsetDeprecated.The offset into the character array.
- 
lengthpublic int lengthDeprecated.The length of characters from the offset.
 
- 
- 
Constructor Details- 
XMLStringpublic XMLString()Deprecated.Default constructor.
 
- 
- 
Method Details- 
setValuespublic void setValues(char[] ch, int offset, int length) Deprecated.Initializes the contents of the XMLString structure with the specified values.- Parameters:
- ch- The character array.
- offset- The offset into the character array.
- length- The length of characters from the offset.
 
- 
setValuesDeprecated.Initializes the contents of the XMLString structure with copies of the given string structure.Note: This does not copy the character array; only the reference to the array is copied. - Parameters:
- s- The string
 
- 
clearpublic void clear()Deprecated.Resets all of the values to their defaults.
- 
equalsDeprecated.Returns true if the contents of this XMLString structure and the specified string are equal.- Parameters:
- s- The string to compare.
- Returns:
- trueif equal
 
- 
toStringDeprecated.
 
-