public class CharBuffer extends FString
data, empty
cantWriteMarker, indexes
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE
Modifier | Constructor and Description |
---|---|
protected |
CharBuffer() |
|
CharBuffer(FString str) |
|
CharBuffer(int initialSize) |
Modifier and Type | Method and Description |
---|---|
void |
consume(int start,
int count,
Consumer dest) |
void |
delete(int start,
int end) |
void |
dump() |
char[] |
getArray() |
int |
length()
Get length of string, in characters.
|
int |
nextIndex(int ipos)
Get the offset from the beginning corresponding to a position cookie.
|
void |
releasePos(int ipos)
Reclaim any resources used by the given position int.
|
java.lang.String |
toString() |
void |
writeTo(java.lang.Appendable dest) |
void |
writeTo(int start,
int count,
java.lang.Appendable dest)
Append a specified subsequence to an
Appendable . |
addAll, addAllStrings, alloc, append, append, append, append, appendCharacter, characterAt, consume, consumePosRange, copy, equals, fill, fill, get, getBuffer, getElementKind, getTag, indexOf, insert, insert, insertRepeated, lastIndexOf, replace, replace, replace, set, setAt, setBuffer, setCharacterAt, setCharAt, setCharAtBuffer, shift, subSequence, substring, toCharArray, withIndexes
charAt, charAtBuffer, clearBuffer, compareTo, compareTo, compareTo, ensureBufferLength, equals, getBuffer, getBufferLength, getChars, hashCode, openReader, openReader, setBuffer, setBufferLength
add, add, addPos, addSpace, fill, getGapManager, getRowMajor, getSegment, getSegment, getSegmentReadOnly, getStableManager, isAfterPos, readExternal, toDataArray, transpose, writeExternal
checkCanWrite, getIndexesForce, indexesSelect, indexesSubList, nextPos, select, size, subList
addAll, addAll, boundedHash, clear, compare, compare, compare, consumeNext, contains, containsAll, copyPos, createPos, createRelativePos, elements, endPos, equals, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, parentPos, previousPos, rank, remove, remove, removeAll, removePos, removePosRange, retainAll, set, setPosNext, setPosPrevious, stableCompare, startPos, subSequence, subSequencePos, toArray, toArray, toString, unsupported, unsupportedException
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray
boundedHash
get, getEffectiveIndex, getLowBound, getSize, isEmpty, rank, set
public CharBuffer(FString str)
public CharBuffer(int initialSize)
protected CharBuffer()
public int length()
CharSeq
length
in interface CharSeq
length
in interface java.lang.CharSequence
length
in class AbstractCharVector<Char>
public char[] getArray()
public void delete(int start, int end)
delete
in class SimpleVector<Char>
public void consume(int start, int count, Consumer dest)
consume
in interface CharSeq
consume
in class AbstractSequence<Char>
public java.lang.String toString()
public void writeTo(int start, int count, java.lang.Appendable dest) throws java.io.IOException
CharSeq
Appendable
.
An allowable implementation is:
dest.append(this, start, start+count)
.
Hence implementors of Appendable
should avoid calling
writeTo
- though they can call getChars
.public void writeTo(java.lang.Appendable dest) throws java.io.IOException
public void dump()
public int nextIndex(int ipos)
AbstractSequence
nextIndex
in class AbstractSequence<Char>
public void releasePos(int ipos)
AbstractSequence
releasePos
in class AbstractSequence<Char>
ipos
- the Pos being free'd.