Java Doc for ReplaceableString.java in  » Internationalization-Localization » icu4j » com » ibm » icu » text » 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 » Internationalization Localization » icu4j » com.ibm.icu.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.icu.text.ReplaceableString

ReplaceableString
public class ReplaceableString implements Replaceable(Code)
ReplaceableString is an adapter class that implements the Replaceable API around an ordinary StringBuffer.

Note: This class does not support attributes and is not intended for general use. Most clients will need to implement Replaceable in their text representation class.

Copyright © IBM Corporation 1999. All rights reserved.
See Also:   Replaceable
author:
   Alan Liu




Constructor Summary
public  ReplaceableString(String str)
     Construct a new object with the given initial contents.
public  ReplaceableString(StringBuffer buf)
     Construct a new object using buf for internal storage.
public  ReplaceableString()
     Construct a new empty object.

Method Summary
public  intchar32At(int offset)
     Return the 32-bit code point at the given 16-bit offset into the text.
public  charcharAt(int offset)
     Return the character at the given position in this object.
public  voidcopy(int start, int limit, int dest)
     Copy a substring of this object, retaining attribute (out-of-band) information.
public  voidgetChars(int srcStart, int srcLimit, char dst, int dstStart)
     Copies characters from this object into the destination character array.
public  booleanhasMetaData()
    
public  intlength()
     Return the number of characters contained in this object.
public  voidreplace(int start, int limit, String text)
     Replace zero or more characters with new characters.
public  voidreplace(int start, int limit, char[] chars, int charsStart, int charsLen)
     Replace a substring of this object with the given text.
public  Stringsubstring(int start, int limit)
     Return a substring of the given string.
public  StringtoString()
     Return the contents of this object as a String.


Constructor Detail
ReplaceableString
public ReplaceableString(String str)(Code)
Construct a new object with the given initial contents.
Parameters:
  str - initial contents



ReplaceableString
public ReplaceableString(StringBuffer buf)(Code)
Construct a new object using buf for internal storage. The contents of buf at the time of construction are used as the initial contents. Note! Modifications to buf will modify this object, and vice versa.
Parameters:
  buf - object to be used as internal storage



ReplaceableString
public ReplaceableString()(Code)
Construct a new empty object.




Method Detail
char32At
public int char32At(int offset)(Code)
Return the 32-bit code point at the given 16-bit offset into the text. This assumes the text is stored as 16-bit code units with surrogate pairs intermixed. If the offset of a leading or trailing code unit of a surrogate pair is given, return the code point of the surrogate pair.
Parameters:
  offset - an integer between 0 and length()-1inclusive 32-bit code point of text at given offset



charAt
public char charAt(int offset)(Code)
Return the character at the given position in this object. Replaceable API.
Parameters:
  offset - offset into the contents, from 0 tolength() - 1



copy
public void copy(int start, int limit, int dest)(Code)
Copy a substring of this object, retaining attribute (out-of-band) information. This method is used to duplicate or reorder substrings. The destination index must not overlap the source range.
Parameters:
  start - the beginning index, inclusive; 0 <= start <=limit.
Parameters:
  limit - the ending index, exclusive; start <= limit <=length().
Parameters:
  dest - the destination index. The characters fromstart..limit-1 will be copied to dest.Implementations of this method may assume that dest <= start ||dest >= limit.



getChars
public void getChars(int srcStart, int srcLimit, char dst, int dstStart)(Code)
Copies characters from this object into the destination character array. The first character to be copied is at index srcStart; the last character to be copied is at index srcLimit-1 (thus the total number of characters to be copied is srcLimit-srcStart). The characters are copied into the subarray of dst starting at index dstStart and ending at index dstStart + (srcLimit-srcStart) - 1.
Parameters:
  srcStart - the beginning index to copy, inclusive; 0<= start <= limit.
Parameters:
  srcLimit - the ending index to copy, exclusive;start <= limit <= length().
Parameters:
  dst - the destination array.
Parameters:
  dstStart - the start offset in the destination array.



hasMetaData
public boolean hasMetaData()(Code)
Implements Replaceable



length
public int length()(Code)
Return the number of characters contained in this object. Replaceable API.



replace
public void replace(int start, int limit, String text)(Code)
Replace zero or more characters with new characters. Replaceable API.
Parameters:
  start - the beginning index, inclusive; 0 <= start<= limit.
Parameters:
  limit - the ending index, exclusive; start <= limit<= length().
Parameters:
  text - new text to replace characters start tolimit - 1



replace
public void replace(int start, int limit, char[] chars, int charsStart, int charsLen)(Code)
Replace a substring of this object with the given text.
Parameters:
  start - the beginning index, inclusive; 0 <= start<= limit.
Parameters:
  limit - the ending index, exclusive; start <= limit<= length().
Parameters:
  chars - the text to replace characters startto limit - 1
Parameters:
  charsStart - the beginning index into chars,inclusive; 0 <= start <= limit.
Parameters:
  charsLen - the number of characters of chars.



substring
public String substring(int start, int limit)(Code)
Return a substring of the given string.



toString
public String toString()(Code)
Return the contents of this object as a String. string contents of this object



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.