|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.model.utils.SimpleStringBuffer
public final class SimpleStringBuffer
A non synchronized StringBuffer object that mimmicks the functionality of java.lang.StringBuffer.
Constructor Summary | |
---|---|
SimpleStringBuffer()
|
|
SimpleStringBuffer(int length)
|
|
SimpleStringBuffer(java.lang.String str)
|
Method Summary | |
---|---|
SimpleStringBuffer |
append(boolean b)
|
SimpleStringBuffer |
append(char c)
|
SimpleStringBuffer |
append(char[] str)
|
SimpleStringBuffer |
append(char[] str,
int offset,
int len)
|
SimpleStringBuffer |
append(double d)
|
SimpleStringBuffer |
append(float f)
|
SimpleStringBuffer |
append(int i)
|
SimpleStringBuffer |
append(long l)
|
SimpleStringBuffer |
append(java.lang.Object obj)
|
SimpleStringBuffer |
append(java.lang.String str)
|
int |
capacity()
Returns the current capacity of the String buffer. |
char |
charAt(int index)
|
SimpleStringBuffer |
delete(int start,
int end)
Removes the characters in a substring of this
SimpleStringBuffer . |
SimpleStringBuffer |
deleteCharAt(int index)
Removes the character at the specified position in this SimpleStringBuffer (shortening the
SimpleStringBuffer by one character). |
void |
ensureCapacity(int minimumCapacity)
Ensures that the capacity of the buffer is at least equal to the specified minimum. |
void |
getChars(int srcBegin,
int srcEnd,
char[] dst,
int dstBegin)
|
char[] |
getValue()
|
SimpleStringBuffer |
insert(int offset,
boolean b)
|
SimpleStringBuffer |
insert(int offset,
char c)
|
SimpleStringBuffer |
insert(int offset,
char[] str)
|
SimpleStringBuffer |
insert(int offset,
double d)
|
SimpleStringBuffer |
insert(int offset,
float f)
|
SimpleStringBuffer |
insert(int offset,
int i)
|
SimpleStringBuffer |
insert(int offset,
long l)
|
SimpleStringBuffer |
insert(int offset,
java.lang.Object obj)
|
SimpleStringBuffer |
insert(int offset,
java.lang.String str)
|
int |
length()
Returns the length (character count) of this string buffer. |
SimpleStringBuffer |
replace(int start,
int end,
java.lang.String str)
Replaces the characters in a substring of this SimpleStringBuffer with characters in the
specified String. |
void |
setCharAt(int index,
char ch)
|
void |
setLength(int newLength)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleStringBuffer()
public SimpleStringBuffer(int length)
public SimpleStringBuffer(java.lang.String str)
Method Detail |
---|
public int length()
public int capacity()
public void ensureCapacity(int minimumCapacity)
minimumCapacity
argument.
2
.
minimumCapacity
argument is nonpositive, this
method takes no action and simply returns.
minimumCapacity
- the minimum desired capacity.public void setLength(int newLength)
public char charAt(int index)
public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
public void setCharAt(int index, char ch)
public SimpleStringBuffer append(java.lang.Object obj)
public SimpleStringBuffer append(java.lang.String str)
public SimpleStringBuffer append(char[] str)
public SimpleStringBuffer append(char[] str, int offset, int len)
public SimpleStringBuffer append(boolean b)
public SimpleStringBuffer append(char c)
public SimpleStringBuffer append(int i)
public SimpleStringBuffer append(long l)
public SimpleStringBuffer append(float f)
public SimpleStringBuffer append(double d)
public SimpleStringBuffer insert(int offset, java.lang.Object obj)
public SimpleStringBuffer insert(int offset, java.lang.String str)
public SimpleStringBuffer insert(int offset, char[] str)
public SimpleStringBuffer insert(int offset, boolean b)
public SimpleStringBuffer insert(int offset, char c)
public SimpleStringBuffer insert(int offset, int i)
public SimpleStringBuffer insert(int offset, long l)
public SimpleStringBuffer insert(int offset, float f)
public SimpleStringBuffer insert(int offset, double d)
public SimpleStringBuffer delete(int start, int end)
SimpleStringBuffer
.
The substring begins at the specified start
and extends to
the character at index end
- 1 or to the end of the
SimpleStringBuffer if no such character exists. If start is equal to
end, no changes are made.
start
- - the beginning index, inclusiveend
- - the ending index, exclusive
java.lang.StringIndexOutOfBoundsException
- - if start is negative,
greater than length()
, or greater than end
.public SimpleStringBuffer deleteCharAt(int index)
SimpleStringBuffer
(shortening the
SimpleStringBuffer
by one character).
index
- - index of the character to remove
java.lang.StringIndexOutOfBoundsException
- - if the index
is negative or greater than or equal to length()
.public SimpleStringBuffer replace(int start, int end, java.lang.String str)
SimpleStringBuffer
with characters in the
specified String. The substring begins at the specified start
and extends to the character at index end
- 1 or
to the end of the SimpleStringBuffer
if no such
character exists. First the characters in the substring are removed
and then the specified String is inserted at start.
(The SimpleStringBuffer
will be lengthened to accommodate
the specified String if necessary.)
start
- - the beginning index, inclusiveend
- - the ending index, exclusivestr
- - string that will replace previous contents
java.lang.StringIndexOutOfBoundsException
- - if start is negative,
greater than length()
, or greater than end
.public java.lang.String toString()
toString
in class java.lang.Object
public char[] getValue()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |