| org.apache.xpath.objects.XObject org.apache.xpath.objects.XString org.apache.xpath.objects.XStringForChars
XStringForChars | public class XStringForChars extends XString (Code) | | This class will wrap a FastStringBuffer and allow for
|
Constructor Summary | |
public | XStringForChars(char[] val, int start, int length) Construct a XNodeSet object. |
m_length | int m_length(Code) | | The length of the string.
|
m_start | int m_start(Code) | | The start position in the fsb.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
XStringForChars | public XStringForChars(char[] val, int start, int length)(Code) | | Construct a XNodeSet object.
Parameters: val - FastStringBuffer object this will wrap, must be non-null. Parameters: start - The start position in the array. Parameters: length - The number of characters to read from the array. |
charAt | public char charAt(int index)(Code) | | 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.
Parameters: index - the index of the character. the character at the specified index of this string.The first character is at index 0 . exception: IndexOutOfBoundsException - if the index argument is negative or not less than the length of thisstring. |
dispatchCharactersEvents | public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException(Code) | | 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.
Parameters: ch - A non-null reference to a ContentHandler. throws: org.xml.sax.SAXException - |
fsb | public FastStringBuffer fsb()(Code) | | Cast result object to a string.
The string this wraps or the empty string if null |
getChars | public void getChars(int srcBegin, int srcEnd, char dst, int dstBegin)(Code) | | Copies characters from this string into the destination character
array.
Parameters: srcBegin - index of the first character in the stringto copy. Parameters: srcEnd - index after the last character in the stringto copy. Parameters: dst - the destination array. Parameters: dstBegin - the start offset in the destination array. exception: IndexOutOfBoundsException - If any of the followingis true:srcBegin is negative.srcBegin is greater than srcEnd srcEnd is greater than the length of thisstringdstBegin is negativedstBegin+(srcEnd-srcBegin) is larger thandst.length
exception: NullPointerException - if dst is null |
hasString | public boolean hasString()(Code) | | Tell if this object contains a java String object.
true if this XMLString can return a string without creating one. |
length | public int length()(Code) | | Returns the length of this string.
the length of the sequence of characters represented by thisobject. |
object | public Object object()(Code) | | Since this object is incomplete without the length and the offset, we
have to convert to a string when this function is called.
The java String representation of this object. |
str | public String str()(Code) | | Cast result object to a string.
The string this wraps or the empty string if null |
Methods inherited from org.apache.xpath.objects.XString | public boolean bool()(Code)(Java Doc) public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)(Code)(Java Doc) public char charAt(int index)(Code)(Java Doc) public int compareTo(XMLString xstr)(Code)(Java Doc) public int compareToIgnoreCase(XMLString str)(Code)(Java Doc) public XMLString concat(String str)(Code)(Java Doc) public void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh) throws org.xml.sax.SAXException(Code)(Java Doc) public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException(Code)(Java Doc) public boolean endsWith(String suffix)(Code)(Java Doc) public boolean equals(XObject obj2)(Code)(Java Doc) public boolean equals(XMLString obj2)(Code)(Java Doc) public boolean equals(Object obj2)(Code)(Java Doc) public boolean equalsIgnoreCase(String anotherString)(Code)(Java Doc) public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail, boolean doublePunctuationSpaces)(Code)(Java Doc) public void getChars(int srcBegin, int srcEnd, char dst, int dstBegin)(Code)(Java Doc) public int getType()(Code)(Java Doc) public String getTypeString()(Code)(Java Doc) public boolean hasString()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public int indexOf(int ch)(Code)(Java Doc) public int indexOf(int ch, int fromIndex)(Code)(Java Doc) public int indexOf(String str)(Code)(Java Doc) public int indexOf(XMLString str)(Code)(Java Doc) public int indexOf(String str, int fromIndex)(Code)(Java Doc) public int lastIndexOf(int ch)(Code)(Java Doc) public int lastIndexOf(int ch, int fromIndex)(Code)(Java Doc) public int lastIndexOf(String str)(Code)(Java Doc) public int lastIndexOf(String str, int fromIndex)(Code)(Java Doc) public int length()(Code)(Java Doc) public double num()(Code)(Java Doc) public int rtf(XPathContext support)(Code)(Java Doc) public boolean startsWith(String prefix, int toffset)(Code)(Java Doc) public boolean startsWith(String prefix)(Code)(Java Doc) public boolean startsWith(XMLString prefix, int toffset)(Code)(Java Doc) public boolean startsWith(XMLString prefix)(Code)(Java Doc) public String str()(Code)(Java Doc) public XMLString substring(int beginIndex)(Code)(Java Doc) public XMLString substring(int beginIndex, int endIndex)(Code)(Java Doc) public double toDouble()(Code)(Java Doc) public XMLString toLowerCase(Locale locale)(Code)(Java Doc) public XMLString toLowerCase()(Code)(Java Doc) public XMLString toUpperCase(Locale locale)(Code)(Java Doc) public XMLString toUpperCase()(Code)(Java Doc) public XMLString trim()(Code)(Java Doc) public XMLString xstr()(Code)(Java Doc)
|
|
|