| java.lang.Object sun.text.normalizer.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 |
Method Summary | |
public char | charAt(int offset) Return the character at the given position in this object. | public void | getChars(int srcStart, int srcLimit, char dst, int dstStart) Copies characters from this object into the destination
character array. | public int | length() Return the number of characters contained in this object. |
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 |
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 |
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. |
length | public int length()(Code) | | Return the number of characters contained in this object.
Replaceable API.
|
|
|