public class U8Vector extends ByteVector
empty
size
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
Constructor and Description |
---|
U8Vector() |
U8Vector(byte[] data) |
U8Vector(byte[] buffer,
int offset,
int length) |
U8Vector(int size) |
U8Vector(int size,
byte value) |
U8Vector(Sequence seq) |
U8Vector(U8Vector seq)
Copy constructor.
|
U8Vector(U8Vector seq,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object obj) |
java.lang.Object |
get(int index)
See java.util.List.
|
java.lang.Object |
getBuffer(int index) |
int |
getElementKind() |
java.lang.String |
getTag()
This is convenience hack for printing "uniform vectors" (srfi 4).
|
int |
intAtBuffer(int index) |
void |
setBuffer(int index,
java.lang.Object value) |
java.lang.String |
toUtf8(int start,
int length)
Covert bytes, interpreted as UTF-8 characters, to a String.
|
byteAt, byteAtBuffer, clearBuffer, consumePosRange, copyFrom, copyFrom, getBuffer, getBufferLength, getInputStream, readExternal, readFrom, setBufferLength, setByteAt, setByteAtBuffer, writeExternal, writeTo
add, add, addAll, addPos, checkCanWrite, clear, compareToInt, compareToLong, consume, fill, fill, fillPosRange, getNextKind, getPosNext, getRowMajor, intAt, isAfterPos, longAt, longAtBuffer, nextIndex, nextPos, remove, remove, removeAll, removePos, removePosRange, resizeShift, retainAll, set, setSize, shift, size, transpose
addAll, compare, compare, compare, consume, consumeNext, contains, containsAll, copyPos, createPos, createRelativePos, elements, endPos, equals, equals, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextTypeName, getNextTypeObject, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, parentPos, previousPos, rank, releasePos, set, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, toString, unsupported, unsupportedException
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArray
consume
get, getEffectiveIndex, getLowBound, getSize, isEmpty, rank, set
public U8Vector()
public U8Vector(int size, byte value)
public U8Vector(int size)
public U8Vector(byte[] data)
public U8Vector(Sequence seq)
public U8Vector(U8Vector seq)
public U8Vector(U8Vector seq, int offset, int length)
public U8Vector(byte[] buffer, int offset, int length)
public final int intAtBuffer(int index)
intAtBuffer
in class SimpleVector
public final java.lang.Object get(int index)
AbstractSequence
get
in interface Sequence
get
in interface java.util.List
get
in class SimpleVector
public final java.lang.Object getBuffer(int index)
getBuffer
in class SimpleVector
public void setBuffer(int index, java.lang.Object value)
setBuffer
in class SimpleVector
public int getElementKind()
getElementKind
in class SimpleVector
public java.lang.String getTag()
SimpleVector
getTag
in class SimpleVector
public int compareTo(java.lang.Object obj)
public java.lang.String toUtf8(int start, int length)