Methods Summary |
---|
public void | appendToFsb(com.sun.org.apache.xml.internal.utils.FastStringBuffer fsb)Cast result object to a string.
fsb.append((char[])m_obj, m_start, m_length);
|
public char | charAt(int index)Returns the character at the specified index. An index ranges
from 0 to length() - 1 . The first character
of the sequence is at index 0 , the next at index
1 , and so on, as for array indexing.
return ((char[])m_obj)[index+m_start];
|
public void | dispatchAsComment(org.xml.sax.ext.LexicalHandler lh)Directly call the
comment method on the passed LexicalHandler for the
string-value.
lh.comment((char[])m_obj, m_start, m_length);
|
public void | dispatchCharactersEvents(org.xml.sax.ContentHandler ch)Directly call the
characters method on the passed ContentHandler for the
string-value. Multiple calls to the
ContentHandler's characters methods may well occur for a single call to
this method.
ch.characters((char[])m_obj, m_start, m_length);
|
public com.sun.org.apache.xml.internal.utils.FastStringBuffer | fsb()Cast result object to a string.
throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS, null)); //"fsb() not supported for XStringForChars!");
|
public void | getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)Copies characters from this string into the destination character
array.
System.arraycopy((char[])m_obj, m_start+srcBegin, dst, dstBegin, srcEnd);
|
public boolean | hasString()Tell if this object contains a java String object.
return (null != m_strCache);
|
public int | length()Returns the length of this string.
return m_length;
|
public java.lang.Object | object()Since this object is incomplete without the length and the offset, we
have to convert to a string when this function is called.
return str();
|
public java.lang.String | str()Cast result object to a string.
if(null == m_strCache)
m_strCache = new String((char[])m_obj, m_start, m_length);
return m_strCache;
|