Java Doc for XStringForChars.java in  » XML » xalan » org » apache » xpath » objects » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xpath.objects 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
 intm_length
     The length of the string.
 intm_start
     The start position in the fsb.
protected  Stringm_strCache
    
final static  longserialVersionUID
    

Constructor Summary
public  XStringForChars(char[] val, int start, int length)
     Construct a XNodeSet object.

Method Summary
public  voidappendToFsb(org.apache.xml.utils.FastStringBuffer fsb)
     Cast result object to a string.
public  charcharAt(int index)
     Returns the character at the specified index.
public  voiddispatchAsComment(org.xml.sax.ext.LexicalHandler lh)
     Directly call the comment method on the passed LexicalHandler for the string-value.
public  voiddispatchCharactersEvents(org.xml.sax.ContentHandler ch)
     Directly call the characters method on the passed ContentHandler for the string-value.
public  FastStringBufferfsb()
     Cast result object to a string.
public  voidgetChars(int srcBegin, int srcEnd, char dst, int dstBegin)
     Copies characters from this string into the destination character array.
public  booleanhasString()
     Tell if this object contains a java String object.
public  intlength()
     Returns the length of this string.
public  Objectobject()
     Since this object is incomplete without the length and the offset, we have to convert to a string when this function is called.
public  Stringstr()
     Cast result object to a string.

Field Detail
m_length
int m_length(Code)
The length of the string.



m_start
int m_start(Code)
The start position in the fsb.



m_strCache
protected String m_strCache(Code)



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
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.




Method Detail
appendToFsb
public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)(Code)
Cast result object to a string. The string this wraps or the empty string if null



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 indexargument is negative or not less than the length of thisstring.



dispatchAsComment
public void dispatchAsComment(org.xml.sax.ext.LexicalHandler lh) throws org.xml.sax.SAXException(Code)
Directly call the comment method on the passed LexicalHandler for the string-value.
Parameters:
  lh - A non-null reference to a LexicalHandler.
throws:
  org.xml.sax.SAXException -



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 thisstring
  • dstBegin is negative
  • dstBegin+(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



Fields inherited from org.apache.xpath.objects.XString
final public static XString EMPTYSTRING(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

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)

Fields inherited from org.apache.xpath.objects.XObject
final public static int CLASS_BOOLEAN(Code)(Java Doc)
final public static int CLASS_NODESET(Code)(Java Doc)
final public static int CLASS_NULL(Code)(Java Doc)
final public static int CLASS_NUMBER(Code)(Java Doc)
final public static int CLASS_RTREEFRAG(Code)(Java Doc)
final public static int CLASS_STRING(Code)(Java Doc)
final public static int CLASS_UNKNOWN(Code)(Java Doc)
final public static int CLASS_UNRESOLVEDVARIABLE(Code)(Java Doc)
protected Object m_obj(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.xpath.objects.XObject
public void allowDetachToRelease(boolean allowRelease)(Code)(Java Doc)
public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)(Code)(Java Doc)
public boolean bool() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean boolWithSideEffects() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)(Code)(Java Doc)
public Object castToType(int t, XPathContext support) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public static XObject create(Object val)(Code)(Java Doc)
public static XObject create(Object val, XPathContext xctxt)(Code)(Java Doc)
public boolean deepEquals(Expression expr)(Code)(Java Doc)
public void destruct()(Code)(Java Doc)
public void detach()(Code)(Java Doc)
public void dispatchCharactersEvents(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException(Code)(Java Doc)
public boolean equals(XObject obj2)(Code)(Java Doc)
protected void error(String msg) throws javax.xml.transform.TransformerException(Code)(Java Doc)
protected void error(String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void fixupVariables(java.util.Vector vars, int globalsSize)(Code)(Java Doc)
public XObject getFresh()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public String getTypeString()(Code)(Java Doc)
public boolean greaterThan(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean greaterThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public DTMIterator iter() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean lessThan(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean lessThanOrEqual(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public NodeSetDTM mutableNodeset() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public NodeList nodelist() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public NodeIterator nodeset() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean notEquals(XObject obj2) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public double num() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public double numWithSideEffects() throws javax.xml.transform.TransformerException(Code)(Java Doc)
public Object object()(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public int rtf(XPathContext support)(Code)(Java Doc)
public int rtf()(Code)(Java Doc)
public DocumentFragment rtree(XPathContext support)(Code)(Java Doc)
public DocumentFragment rtree()(Code)(Java Doc)
public String str()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public XMLString xstr()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.