Java Doc for AbstractStringBuilder.java in  » Apache-Harmony-Java-SE » java-package » java » lang » 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 » Apache Harmony Java SE » java package » java.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.AbstractStringBuilder

AbstractStringBuilder
abstract class AbstractStringBuilder (Code)
A modifiable CharSequence sequence of characters for use in creating and modifying Strings. This class is intended as a base class for java.lang.StringBuffer and java.lang.StringBuilder .
See Also:   java.lang.StringBuffer
See Also:   java.lang.StringBuilder
since:
   1.5


Field Summary
final static  intINITIAL_CAPACITY
    

Constructor Summary
 AbstractStringBuilder()
    
 AbstractStringBuilder(int capacity)
    
 AbstractStringBuilder(String string)
    

Method Summary
final  voidappend0(char chars)
    
final  voidappend0(char chars, int start, int length)
    
final  voidappend0(char ch)
    
final  voidappend0(String string)
    
final  voidappend0(CharSequence s, int start, int end)
    
final  voidappendNull()
    
public  intcapacity()
     Answers the number of characters this StringBuffer can hold without growing.
public  charcharAt(int index)
     Retrieves the character at the index.
Parameters:
  index - The index of character in this object to retrieve.
public  intcodePointAt(int index)
     Retrieves the Unicode code point value at the index.
Parameters:
  index - The index to the char code unit within thisobject.
public  intcodePointBefore(int index)
     Retrieves the Unicode code point value that precedes the index.
Parameters:
  index - The index to the char code unit within thisobject.
public  intcodePointCount(int beginIndex, int endIndex)
     Calculates the number of Unicode code points between beginIndex and endIndex.
Parameters:
  beginIndex - The inclusive beginning index of the subsequence.
Parameters:
  endIndex - The exclusive end index of the subsequence.
final  voiddelete0(int start, int end)
    
final  voiddeleteCharAt0(int location)
    
public  voidensureCapacity(int min)
     Ensures that this object has a minimum capacity available before requiring the internal buffer to be enlarged.
public  voidgetChars(int start, int end, char[] dest, int destStart)
     Copies the requested sequence of characters to be copied to the char[] passed.
final  char[]getValue()
    
public  intindexOf(String string)
     Searches in this StringBuffer for the first index of the specified character.
public  intindexOf(String subString, int start)
     Searches in this StringBuffer for the index of the specified character.
final  voidinsert0(int index, char[] chars)
    
final  voidinsert0(int index, char[] chars, int start, int length)
    
final  voidinsert0(int index, char ch)
    
final  voidinsert0(int index, String string)
    
final  voidinsert0(int index, CharSequence s, int start, int end)
    
public  intlastIndexOf(String string)
     Searches in this StringBuffer for the last index of the specified character.
public  intlastIndexOf(String subString, int start)
     Searches in this StringBuffer for the index of the specified character.
public  intlength()
     The current length of this object.
public  intoffsetByCodePoints(int index, int codePointOffset)
     Returns the index within this object that is offset from index by codePointOffset code points.
Parameters:
  index - The index within this object to calculate the offset from.
Parameters:
  codePointOffset - The number of code points to count.
final  voidreplace0(int start, int end, String string)
    
final  voidreverse0()
    
final  voidset(char[] val, int len)
    
public  voidsetCharAt(int index, char ch)
     Sets the character at the index in this object.
public  voidsetLength(int length)
     Sets the current length to a new value.
final  char[]shareValue()
    
public  CharSequencesubSequence(int start, int end)
     Returns a CharSequence of the subsequence of this object from the start index to the start index.
Parameters:
  start - The inclusive start index to begin the subsequence.
Parameters:
  end - The exclusive end index to end the subsequence.
public  Stringsubstring(int start)
     Returns the String value of the subsequence of this object from the start index to the current end.
Parameters:
  start - The inclusive start index to begin the subsequence.
public  Stringsubstring(int start, int end)
     Returns the String value of the subsequence of this object from the start index to the start index.
Parameters:
  start - The inclusive start index to begin the subsequence.
Parameters:
  end - The exclusive end index to end the subsequence.
public  StringtoString()
     Returns the current String representation of this object.
public  voidtrimToSize()
     Trims off any extra capacity beyond the current length.

Field Detail
INITIAL_CAPACITY
final static int INITIAL_CAPACITY(Code)




Constructor Detail
AbstractStringBuilder
AbstractStringBuilder()(Code)



AbstractStringBuilder
AbstractStringBuilder(int capacity)(Code)



AbstractStringBuilder
AbstractStringBuilder(String string)(Code)




Method Detail
append0
final void append0(char chars)(Code)



append0
final void append0(char chars, int start, int length)(Code)



append0
final void append0(char ch)(Code)



append0
final void append0(String string)(Code)



append0
final void append0(CharSequence s, int start, int end)(Code)



appendNull
final void appendNull()(Code)



capacity
public int capacity()(Code)
Answers the number of characters this StringBuffer can hold without growing. the capacity of this StringBuffer
See Also:   AbstractStringBuilder.ensureCapacity
See Also:   AbstractStringBuilder.length



charAt
public char charAt(int index)(Code)
Retrieves the character at the index.
Parameters:
  index - The index of character in this object to retrieve. The char value.
throws:
  IndexOutOfBoundsException - if index is negative or greater than or equalto the current AbstractStringBuilder.length().



codePointAt
public int codePointAt(int index)(Code)
Retrieves the Unicode code point value at the index.
Parameters:
  index - The index to the char code unit within thisobject. The Unicode code point value.
throws:
  IndexOutOfBoundsException - if index is negative or greater than or equalto AbstractStringBuilder.length().
See Also:   Character
See Also:   Character.codePointAt(char[]intint)
since:
   1.5



codePointBefore
public int codePointBefore(int index)(Code)
Retrieves the Unicode code point value that precedes the index.
Parameters:
  index - The index to the char code unit within thisobject. The Unicode code point value.
throws:
  IndexOutOfBoundsException - if index is less than 1 or greater thanAbstractStringBuilder.length().
See Also:   Character
See Also:   Character.codePointBefore(char[]intint)
since:
   1.5



codePointCount
public int codePointCount(int beginIndex, int endIndex)(Code)
Calculates the number of Unicode code points between beginIndex and endIndex.
Parameters:
  beginIndex - The inclusive beginning index of the subsequence.
Parameters:
  endIndex - The exclusive end index of the subsequence. The number of Unicode code points in the subsequence.
throws:
  IndexOutOfBoundsException - if beginIndex is negative or greater thanendIndex or endIndex is greaterthan AbstractStringBuilder.length().
since:
   1.5



delete0
final void delete0(int start, int end)(Code)



deleteCharAt0
final void deleteCharAt0(int location)(Code)



ensureCapacity
public void ensureCapacity(int min)(Code)
Ensures that this object has a minimum capacity available before requiring the internal buffer to be enlarged. The general policy of this method is that if the minimumCapacity is larger than the current AbstractStringBuilder.capacity() , then the capacity will be increased to the largest value of either the minimumCapacity or the current capacity multiplied by two plus two. Although this is the general policy, there is no guarantee that the capacity will change.
Parameters:
  min - The new minimum capacity to set.



getChars
public void getChars(int start, int end, char[] dest, int destStart)(Code)
Copies the requested sequence of characters to be copied to the char[] passed.
Parameters:
  start - The inclusive start index of the characters to copy from thisobject.
Parameters:
  end - The exclusive end index of the characters to copy from thisobject.
Parameters:
  dest - The char[] to copy the characters to.
Parameters:
  destStart - The inclusive start index of the dest parameterto begin copying to.
throws:
  IndexOutOfBoundsException - if the start is negative, thedestStart is negative, the startis greater than end, the endis greater than the current AbstractStringBuilder.length() ordestStart + end - begin is greater thandest.length.



getValue
final char[] getValue()(Code)



indexOf
public int indexOf(String string)(Code)
Searches in this StringBuffer for the first index of the specified character. The search for the character starts at the beginning and moves towards the end.
Parameters:
  string - the string to find the index in this StringBuffer of the specified character, -1 ifthe character isn't found
See Also:   AbstractStringBuilder.lastIndexOf(String)
since:
   1.4



indexOf
public int indexOf(String subString, int start)(Code)
Searches in this StringBuffer for the index of the specified character. The search for the character starts at the specified offset and moves towards the end.
Parameters:
  subString - the string to find
Parameters:
  start - the starting offset the index in this StringBuffer of the specified character, -1 ifthe character isn't found
See Also:   AbstractStringBuilder.lastIndexOf(String,int)
since:
   1.4



insert0
final void insert0(int index, char[] chars)(Code)



insert0
final void insert0(int index, char[] chars, int start, int length)(Code)



insert0
final void insert0(int index, char ch)(Code)



insert0
final void insert0(int index, String string)(Code)



insert0
final void insert0(int index, CharSequence s, int start, int end)(Code)



lastIndexOf
public int lastIndexOf(String string)(Code)
Searches in this StringBuffer for the last index of the specified character. The search for the character starts at the end and moves towards the beginning.
Parameters:
  string - the string to find the index in this StringBuffer of the specified character, -1 ifthe character isn't found
throws:
  NullPointerException - if the string parameter is null.
See Also:   String.lastIndexOf(java.lang.String)
since:
   1.4



lastIndexOf
public int lastIndexOf(String subString, int start)(Code)
Searches in this StringBuffer for the index of the specified character. The search for the character starts at the specified offset and moves towards the beginning.
Parameters:
  subString - the string to find
Parameters:
  start - the starting offset the index in this StringBuffer of the specified character, -1 ifthe character isn't found
throws:
  NullPointerException - if the subString parameter isnull.
See Also:   String.lastIndexOf(java.lang.Stringint)
since:
   1.4



length
public int length()(Code)
The current length of this object. the number of characters in this StringBuffer



offsetByCodePoints
public int offsetByCodePoints(int index, int codePointOffset)(Code)
Returns the index within this object that is offset from index by codePointOffset code points.
Parameters:
  index - The index within this object to calculate the offset from.
Parameters:
  codePointOffset - The number of code points to count. The index within this object that is the offset.
throws:
  IndexOutOfBoundsException - if index is negative or greater thanAbstractStringBuilder.length() or if there aren't enough code pointsbefore or after index to matchcodePointOffset.
since:
   1.5



replace0
final void replace0(int start, int end, String string)(Code)



reverse0
final void reverse0()(Code)



set
final void set(char[] val, int len) throws InvalidObjectException(Code)



setCharAt
public void setCharAt(int index, char ch)(Code)
Sets the character at the index in this object.
Parameters:
  index - the zero-based index of the character to replace.
Parameters:
  ch - the character to set.
throws:
  IndexOutOfBoundsException - if index is negative or greater than or equalto the current AbstractStringBuilder.length().



setLength
public void setLength(int length)(Code)
Sets the current length to a new value. If the new length is larger than the current length, then the new characters at the end of this object will contain the char value of \u0000.
Parameters:
  length - the new length of this StringBuffer
exception:
  IndexOutOfBoundsException - when length < 0
See Also:   AbstractStringBuilder.length



shareValue
final char[] shareValue()(Code)



subSequence
public CharSequence subSequence(int start, int end)(Code)
Returns a CharSequence of the subsequence of this object from the start index to the start index.
Parameters:
  start - The inclusive start index to begin the subsequence.
Parameters:
  end - The exclusive end index to end the subsequence. A CharSequence containing the subsequence.
throws:
  IndexOutOfBoundsException - if start is negative, greater than the currentAbstractStringBuilder.length() or greater than end.
since:
   1.4



substring
public String substring(int start)(Code)
Returns the String value of the subsequence of this object from the start index to the current end.
Parameters:
  start - The inclusive start index to begin the subsequence. A String containing the subsequence.
throws:
  StringIndexOutOfBoundsException - if start is negative or greater than thecurrent AbstractStringBuilder.length().



substring
public String substring(int start, int end)(Code)
Returns the String value of the subsequence of this object from the start index to the start index.
Parameters:
  start - The inclusive start index to begin the subsequence.
Parameters:
  end - The exclusive end index to end the subsequence. A String containing the subsequence.
throws:
  StringIndexOutOfBoundsException - if start is negative, greater than the currentAbstractStringBuilder.length() or greater than end.



toString
public String toString()(Code)
Returns the current String representation of this object. a String containing the characters in this StringBuilder.



trimToSize
public void trimToSize()(Code)
Trims off any extra capacity beyond the current length. Note, this method is NOT guaranteed to change the capacity of this object.
since:
   1.5



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.