Java Doc for CharBuf.java in  » Testing » PolePosition-0.20 » com » versant » core » util » 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 » Testing » PolePosition 0.20 » com.versant.core.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.util.CharBuf

CharBuf
final public class CharBuf (Code)
Fast StringBuffer replacement that allows direct access to the underlying char[]. This is based com.sosnoski.util.array.CharArray from Sosnoski Software Solutions, Inc.



Constructor Summary
public  CharBuf()
    
public  CharBuf(int capacity)
    
public  CharBuf(String s)
    
public  CharBuf(CharBuf s)
    

Method Summary
protected  voidadjust(int from, int to, int length)
     Adjust the characters in the array to make room for an insertion or replacement.
public  intappend(char ch)
     Append ch and return its index.
public  intappend(int i)
     Append i and return its index.
public  intappend(String s)
     Append s and return its index.
public  intappend(char[] a)
     Append a and return its index.
public  voidclear()
    
public  voidinsert(int offset, char[] text)
     Insert the characters from a char[] into the array.
public  voidinsert(int offset, String text)
     Insert the characters from a String into the array.
public  voidremove(int from, int to)
     Remove a range of value from the array.
public  voidreplace(int i, char[] text)
     Replace characters from i onwards with supplied characters.
public  voidreplace(int first, int last, char c)
     Replace characters from first to last - 1 with c.
public  voidreplace(int from, int to, String text)
     Replace a character range in the array with the characters from a String.
public  voidreplace(int from, int to, char[] text)
     Replace a character range in the array with the characters from a char[].
public  voidset(int index, char value)
     Set the value at an index position in the array.
public  voidsetSize(int sz)
    
public  intsize()
    
public  char[]toArray(int offset, int length)
     Constructs and returns a simple array containing the same data as held in a portion of this growable array.
public  StringtoString()
    
public  StringtoString(int offset, int length)
     Construct a String from a portion of the character sequence present.


Constructor Detail
CharBuf
public CharBuf()(Code)



CharBuf
public CharBuf(int capacity)(Code)



CharBuf
public CharBuf(String s)(Code)



CharBuf
public CharBuf(CharBuf s)(Code)




Method Detail
adjust
protected void adjust(int from, int to, int length)(Code)
Adjust the characters in the array to make room for an insertion or replacement. Depending on the relative sizes of the range being replaced and the range being inserted, this may move characters past the start of the replacement range up or down in the array.
Parameters:
  from - index number of first character to be replaced
Parameters:
  to - index number past last character to be replaced
Parameters:
  length - length of character range being inserted



append
public int append(char ch)(Code)
Append ch and return its index.



append
public int append(int i)(Code)
Append i and return its index.



append
public int append(String s)(Code)
Append s and return its index.



append
public int append(char[] a)(Code)
Append a and return its index.



clear
public void clear()(Code)



insert
public void insert(int offset, char[] text)(Code)
Insert the characters from a char[] into the array.



insert
public void insert(int offset, String text)(Code)
Insert the characters from a String into the array.



remove
public void remove(int from, int to)(Code)
Remove a range of value from the array. The index positions for values above the range removed are decreased by the number of values removed.
Parameters:
  from - index number of first value to be removed
Parameters:
  to - index number past last value to be removed



replace
public void replace(int i, char[] text)(Code)
Replace characters from i onwards with supplied characters. This does not do any error checking or make any attempt to expand the buffer for performance reasons.



replace
public void replace(int first, int last, char c)(Code)
Replace characters from first to last - 1 with c. This does not do any error checking for performance reasons.



replace
public void replace(int from, int to, String text)(Code)
Replace a character range in the array with the characters from a String.



replace
public void replace(int from, int to, char[] text)(Code)
Replace a character range in the array with the characters from a char[].



set
public void set(int index, char value)(Code)
Set the value at an index position in the array.



setSize
public void setSize(int sz)(Code)



size
public int size()(Code)



toArray
public char[] toArray(int offset, int length)(Code)
Constructs and returns a simple array containing the same data as held in a portion of this growable array.



toString
public String toString()(Code)



toString
public String toString(int offset, int length)(Code)
Construct a String from a portion of the character sequence present.



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