|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICharBuffer
The ICharBuffer interface defines the API of an unsynchronized
character buffer.
| Field Summary | |
|---|---|
static short |
GROW_EXPONENTIALLY
This grow style cause the buffer to grow exponentially in multiples of the buffer's current capacity. |
static short |
GROW_LINEARLY
This grow style causes the buffer to grow linearly in multiples of the buffer's initial capacity. |
| Method Summary | |
|---|---|
ICharBuffer |
append(boolean booleanValue)
Append a boolean to the buffer. |
ICharBuffer |
append(char charValue)
Append a single character to the buffer. |
ICharBuffer |
append(char[] array)
Append characters from an array to the buffer. |
ICharBuffer |
append(char[] array,
int start,
int length)
Append characters from an array to the buffer. |
ICharBuffer |
append(double doubleValue)
Append a double to the buffer. |
ICharBuffer |
append(float floatValue)
Append a float to the buffer. |
ICharBuffer |
append(int intValue)
Append an int to the buffer. |
ICharBuffer |
append(long longValue)
Append a long to the buffer. |
ICharBuffer |
append(Object object)
Append an Object to the buffer. |
ICharBuffer |
append(String value)
Append a String to the buffer. |
int |
capacity()
Answers the number of characters that can be appended to the buffer without it growing. |
char |
charAt(int i)
Answers the character in the buffer at the specified index |
int |
getGrowPercentage()
Get the grow percentage used to calculate how much the buffer will grow when its capacity is exhausted. |
short |
getGrowStyle()
Get the grow style used to calculate how much the buffer will grow when its capacity is exhausted. |
String |
getValue()
Get a String composed of the contents of the buffer. |
int |
length()
The number of characters in the buffer. |
void |
setChar(int i,
char ch)
Set the character at the specified index. |
void |
setGrowPercentage(int growthFactor)
Set the grow percentage used to calculate how much the buffer will grow when its capacity is exhausted. |
void |
setGrowStyle(short growStyle)
Set the grow style used to calculate how much the buffer will grow when its capacity is exhausted. |
void |
setLength(int length)
Set the length of the buffer. |
char[] |
toArray()
Answers a new char array containing the contents of the
buffer. |
char[] |
toArray(char[] target)
Copies the contents of the buffer into the specified char
array. |
ICharBuffer |
toSynchronizedCharBuffer()
Answers a thread-safe version of the buffer. |
| Field Detail |
|---|
static final short GROW_LINEARLY
static final short GROW_EXPONENTIALLY
| Method Detail |
|---|
ICharBuffer append(boolean booleanValue)
boolean to the buffer. The value is converted to a
String which is appended to the buffer.
booleanValue - The boolean to append to the buffer.
null.ICharBuffer append(char charValue)
charValue - The character to append.
null.ICharBuffer append(char[] array)
array - The source.
null.
ICharBuffer append(char[] array,
int start,
int length)
array - The source.start - The index of the first character.length - The number of characters to append.
null.ICharBuffer append(double doubleValue)
double to the buffer. The value is converted to a
String which is appended to the buffer.
doubleValue - The double to append to the buffer.
null.ICharBuffer append(float floatValue)
float to the buffer. The value is converted to a
String which is appended to the buffer.
floatValue - The float to append to the buffer.
null.ICharBuffer append(int intValue)
int to the buffer. The value is converted to a
String which is appended to the buffer.
intValue - The int to append to the buffer.
null.ICharBuffer append(long longValue)
long to the buffer. The value is converted to a
String which is appended to the buffer.
longValue - The double to append to the buffer.
null.ICharBuffer append(Object object)
Object to the buffer. The object is converted
to a String by calling toString(), the result
of which is appended to the buffer.
object - The Object to append to the buffer.
null.ICharBuffer append(String value)
String to the buffer.
value - The String to append to the buffer.
null.int capacity()
char charAt(int i)
i - The index.
int getGrowPercentage()
short getGrowStyle()
ICharBuffer.GROW_LINEARLY
ICharBuffer.GROW_EXPONENTIALLY
String getValue()
String composed of the contents of the buffer.
int length()
void setChar(int i,
char ch)
i - The index.ch - The character.void setGrowPercentage(int growthFactor)
growthFactor - A positive integer.void setGrowStyle(short growStyle)
ICharBuffer.GROW_LINEARLY
ICharBuffer.GROW_EXPONENTIALLY
growStyle - A grow style.void setLength(int length)
(char) 0.
length - The new length of the buffer, which may not exceed the
buffer's capacity.char[] toArray()
char array containing the contents of the
buffer.
char array containing the contents of the buffer.char[] toArray(char[] target)
char
array. If the array is not big enough and new array is created.
target - The target array into which the contents of the buffer is
copied.
char array containing the contents of the buffer.ICharBuffer toSynchronizedCharBuffer()
|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001, 2008 IBM Corporation and others. All Rights Reserved.