public abstract class ByteVector extends SimpleVector implements java.io.Externalizable, java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
empty |
sizeATTRIBUTE_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 |
|---|
ByteVector() |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteAt(int index) |
byte |
byteAtBuffer(int index) |
protected void |
clearBuffer(int start,
int count) |
void |
consumePosRange(int iposStart,
int iposEnd,
Consumer out) |
void |
copyFrom(byte[] src,
int soffset,
int doffset,
int length) |
void |
copyFrom(int index,
ByteVector src,
int start,
int end) |
byte[] |
getBuffer() |
int |
getBufferLength()
Get the allocated length of the data buffer.
|
java.io.InputStream |
getInputStream() |
void |
readExternal(java.io.ObjectInput in) |
int |
readFrom(int start,
int count,
java.io.InputStream in) |
void |
setBufferLength(int length) |
void |
setByteAt(int index,
byte value) |
void |
setByteAtBuffer(int index,
byte value) |
void |
writeExternal(java.io.ObjectOutput out) |
void |
writeTo(int start,
int count,
java.io.OutputStream out) |
add, add, addAll, addPos, checkCanWrite, clear, compareToInt, compareToLong, consume, fill, fill, fillPosRange, get, getBuffer, getElementKind, getNextKind, getPosNext, getRowMajor, getTag, intAt, intAtBuffer, isAfterPos, longAt, longAtBuffer, nextIndex, nextPos, remove, remove, removeAll, removePos, removePosRange, resizeShift, retainAll, set, setBuffer, setSize, shift, size, transposeaddAll, 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, unsupportedExceptionclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, replaceAll, sort, spliterator, subList, toArray, toArrayconsumeget, getEffectiveIndex, getLowBound, getSize, isEmpty, rank, setpublic int getBufferLength()
getBufferLength in class SimpleVectorpublic void setBufferLength(int length)
setBufferLength in class SimpleVectorpublic byte[] getBuffer()
getBuffer in class SimpleVectorpublic final byte byteAt(int index)
public final byte byteAtBuffer(int index)
public void consumePosRange(int iposStart,
int iposEnd,
Consumer out)
consumePosRange in class SimpleVectorpublic final void setByteAt(int index,
byte value)
public final void setByteAtBuffer(int index,
byte value)
public void copyFrom(byte[] src,
int soffset,
int doffset,
int length)
protected void clearBuffer(int start,
int count)
clearBuffer in class SimpleVectorpublic void copyFrom(int index,
ByteVector src,
int start,
int end)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic java.io.InputStream getInputStream()
public int readFrom(int start,
int count,
java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic void writeTo(int start,
int count,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOException