public class CharBuffer extends FString
data, empty
COPY_ON_WRITE, GAP_FLAG, info, MAX_GAP_SIZE, READ_ONLY_FLAG, SHARED_FLAG, SUBRANGE_FLAG, VERY_SIMPLE_FLAG
noInts
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 |
---|---|
int |
copyPos(int ipos)
Make a copy of a position int.
|
int |
createPos(int index,
boolean isAfter)
Generate a position at a given index.
|
void |
dump() |
int |
endPos() |
protected void |
gapReserve(int where,
int needed) |
char[] |
getArray() |
boolean |
hasNext(int ipos) |
void |
insert(int where,
int ch,
boolean beforeMarkers) |
void |
insert(int where,
java.lang.String str,
boolean beforeMarkers) |
boolean |
isAfterPos(int ipos)
Tests whether the position has the "isAfter" property.
|
int |
nextIndex(int ipos)
Get the offset from the beginning corresponding to a position cookie.
|
int |
nextPos(int ipos)
Return the next position following the argument.
|
void |
releasePos(int ipos)
Reclaim any resources used by the given position int.
|
int |
startPos() |
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, consumePosRange, copy, createRelativePos, effectiveIndex, equals, get, getElementKind, getRaw, getTag, indexOf, insertRepeated, lastIndexOf, newInstance, prepend, prepend, prependCharacter, replace, replace, replace, set, setCharacterAt, setCharAt, setCharAtBuffer, setRaw, shift, size, subSequence, substring, toCharArray
charAt, clearBuffer, compareTo, compareTo, compareTo, copyBuffer, ensureBufferLength, equals, getBuffer, getBufferLength, getCharRaw, getChars, hashCode, length, openReader, openReader, setBuffer
add, add, addPos, addSpace, asImmutable, checkCanWrite, delete, doCopyOnWrite, fill, forEach, gapReserveGeneric, getGapEnd, getGapSize, getGapStart, getOffsetBits, getRowMajor, getSegment, getSegment, getSegmentReadOnly, getSizeBits, isGapBuffer, isReadOnly, isSubRange, isVerySimple, readExternal, setGapBounds, setGapBounds, setInfoField, setReadOnly, toDataArray, writeExternal
addAll, addAll, badRank, boundedHash, checkRank, clear, compare, compare, compare, consume, consume, consumeNext, contains, containsAll, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, elements, equals, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, get, get, getAttribute, getAttributeLength, getBooleanRaw, getByteRaw, getContainingSequenceSize, getDoubleRaw, getFloatRaw, getIndexDifference, getInt, getInt, getInt, getInt, getInt, getIntRaw, getIterator, getIterator, getIteratorAtPos, getLongRaw, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getShortRaw, getSize, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, parentPos, previousPos, rank, remove, remove, removeAll, removePos, removePosRange, retainAll, set, setAt, setPosNext, setPosPrevious, stableCompare, subList, 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, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
consume
boundedHash
effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, get, get, get, get, getBooleanRaw, getByteRaw, getDoubleRaw, getFloatRaw, getInt, getInt, getInt, getInt, getInt, getIntRaw, getLongRaw, getLowBound, getShortRaw, getSize, getSize, isEmpty, rank, set
public CharBuffer(FString str)
public CharBuffer(int initialSize)
protected CharBuffer()
public char[] getArray()
public int startPos()
startPos
in class AbstractSequence<Char>
public int endPos()
endPos
in class AbstractSequence<Char>
public boolean isAfterPos(int ipos)
AbstractSequence
isAfterPos
in class SimpleVector<Char>
public boolean hasNext(int ipos)
hasNext
in class AbstractSequence<Char>
public int nextPos(int ipos)
AbstractSequence
nextPos
in class AbstractSequence<Char>
public int copyPos(int ipos)
AbstractSequence
copyPos
in class AbstractSequence<Char>
ipos
- the position being copied.public int nextIndex(int ipos)
AbstractSequence
public void releasePos(int ipos)
AbstractSequence
releasePos
in class AbstractSequence<Char>
ipos
- the Pos being free'd.public int createPos(int index, boolean isAfter)
AbstractSequence
public void insert(int where, int ch, boolean beforeMarkers)
public void insert(int where, java.lang.String str, boolean beforeMarkers)
protected void gapReserve(int where, int needed)
gapReserve
in class SimpleVector<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()