CharArrayBuffer
is intended as a lightweight partial implementation of the StringBuffer class, but using char[]'s
instead of Strings. The CharArrayBuffer
maintains a list of char[]'s
which don't get appended until the user asks for them. The following code illustrates how to use the class. CharArrayBuffer buffer = new CharArrayBuffer(myCharArray); buffer.append(moreBytes, 0, someLength); myCharArray = buffer.getContents();
NOTE: This class is not Thread safe!
CharArrayBuffer
is intended as a lightweight partial implementation of the StringBuffer class, but using char[]'s
instead of Strings. The CharArrayBuffer
maintains a list of char[]'s
which don't get appended until the user asks for them. The following code illustrates how to use the class. CharArrayBuffer buffer = new CharArrayBuffer(myCharArray); buffer.append(moreBytes, 0, someLength); myCharArray = buffer.getContents();
NOTE: This class is not Thread safe!
|
|
|
|
|
|
|
|