public class UnprotectedStringBufferLimited extends UnprotectedStringBuffer
UnprotectedStringBuffer.AbstractCS, UnprotectedStringBuffer.CS, UnprotectedStringBuffer.WCS| Modifier and Type | Field and Description |
|---|---|
protected int |
maxSize |
protected int |
size |
| Constructor and Description |
|---|
UnprotectedStringBufferLimited(int maxSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UnprotectedStringBuffer |
addFirst(UnprotectedString s)
Add the given string at the beginning.
|
UnprotectedStringBuffer |
append(char c)
Append a character.
|
UnprotectedStringBuffer |
append(char[] chars,
int offset,
int len)
Append characters.
|
UnprotectedStringBuffer |
append(CharSequence s)
Append characters.
|
int |
getMaxSize() |
UnprotectedStringBuffer |
removeEndChars(int nb)
Remove the given number of characters at the end.
|
UnprotectedStringBuffer |
removeStartChars(int nb)
Remove the given number of characters at the beginning.
|
void |
replace(int start,
int end,
UnprotectedString s)
Remove characters from start to end (inclusive), and replace them by the given string.
|
UnprotectedStringBuffer |
replace(int start,
int end,
UnprotectedStringBuffer s)
Remove characters from start to end (inclusive), and replace them by the given string.
|
void |
searchAndReplace(CharSequence start,
CharSequence end,
UnaryOperator<UnprotectedStringBuffer> valueProvider)
Search for a starting string and a ending string, and replace them including the content with new content.
|
UnprotectedStringBuffer |
trimBeginning()
Remove spaces characters at the beginning of this string.
|
UnprotectedStringBuffer |
trimEnd()
Remove spaces characters at the end of this string.
|
addFirst, addFirst, asCharacters, asCharacterStream, asCharBuffers, asWritableCharacterStream, charAt, encode, endsWith, equals, fill, fillUsAsciiBytes, getNbUsableUnprotectedStrings, getUnprotectedString, indexOf, indexOf, isEmpty, length, replace, replace, replace, replace, replace, replace, replace, setCharAt, split, startsWith, subSequence, substring, substring, toLowerCase, toString, toUpperCaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappend, asString, encode, equals, fill, fillUsAsciiBytes, indexOf, indexOf, isStartOf, toUsAsciiBytes, trimchars, codePointspublic UnprotectedStringBufferLimited(int maxSize)
public int getMaxSize()
public UnprotectedStringBuffer append(char c)
IStringappend in interface IStringappend in class UnprotectedStringBufferpublic UnprotectedStringBuffer append(char[] chars, int offset, int len)
IStringappend in interface IStringappend in class UnprotectedStringBufferpublic UnprotectedStringBuffer append(CharSequence s)
IStringappend in interface IStringappend in class UnprotectedStringBufferpublic UnprotectedStringBuffer addFirst(UnprotectedString s)
UnprotectedStringBufferaddFirst in class UnprotectedStringBufferpublic UnprotectedStringBuffer trimBeginning()
IStringtrimBeginning in interface IStringtrimBeginning in class UnprotectedStringBufferpublic UnprotectedStringBuffer trimEnd()
IStringtrimEnd in interface IStringtrimEnd in class UnprotectedStringBufferpublic UnprotectedStringBuffer removeStartChars(int nb)
IStringremoveStartChars in interface IStringremoveStartChars in class UnprotectedStringBufferpublic UnprotectedStringBuffer removeEndChars(int nb)
IStringremoveEndChars in interface IStringremoveEndChars in class UnprotectedStringBufferpublic void replace(int start,
int end,
UnprotectedString s)
UnprotectedStringBufferreplace in class UnprotectedStringBufferpublic UnprotectedStringBuffer replace(int start, int end, UnprotectedStringBuffer s)
UnprotectedStringBufferreplace in class UnprotectedStringBufferpublic void searchAndReplace(CharSequence start, CharSequence end, UnaryOperator<UnprotectedStringBuffer> valueProvider)
UnprotectedStringBuffersearchAndReplace in class UnprotectedStringBufferCopyright © 2019. All rights reserved.