|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.portal.prt.util.SharedString
Class used by RecyclableStringBuffer to allow sharing the underlying char buffer, thus avoiding copying char[] along the call chain. In order to release the buffer into the pool, the consumer MUST call release() when he's done with the buffer.
| Method Summary | |
char[] |
getChars()
In order to have the right char[], this method has to be used in conjonction with length(). |
int |
length()
The length of the useful char[]. |
void |
release()
Releases the underlying resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void release()
public char[] getChars()
public int length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||