java.lang.Object | |
↳ | sun.text.normalizer.ReplaceableString |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new object with the given initial contents.
| |||||||||||
Construct a new object using
buf for internal
storage. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the character at the given position in this object.
| |||||||||||
Copies characters from this object into the destination
character array.
| |||||||||||
Return the number of characters contained in this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Construct a new object with the given initial contents.
str | initial contents |
---|
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.
buf | object to be used as internal storage |
---|
Return the character at the given position in this object.
Replaceable
API.
offset | offset into the contents, from 0 to
length() - 1 |
---|
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
.
srcStart | the beginning index to copy, inclusive; 0
<= start <= limit . |
---|---|
srcLimit | the ending index to copy, exclusive;
start <= limit <= length() . |
dst | the destination array. |
dstStart | the start offset in the destination array. |
Return the number of characters contained in this object.
Replaceable
API.