| Modifier and Type | Field and Description |
|---|---|
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| protected String | |
| protected View | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | AbstractBuffer(int
0==IMMUTABLE, 1==READONLY, 2==READWRITE access, boolean isVolatile)Constructor for BufferView |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public Buffer | |
| public Buffer | |
| public Buffer | |
| public Buffer | |
| public Buffer | |
| public void | |
| public void | compact()
Implements org. |
| public ByteArrayBuffer | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public boolean | |
| public byte | |
| public int | get(byte[]
The byte array to fill. b, int Offset in the array. offset, int The max number of bytes to read. length)Implements org. |
| public Buffer | |
| public final int | getIndex()
Implements org. |
| public boolean | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | length()
Implements org. |
| public void | |
| public void | mark(int
an offset)int value to add to the current getIndex to obtain the mark value.Implements org. |
| public int | |
| public byte | peek()
Implements org. |
| public Buffer | |
| public int | poke(int
an index, Buffer int valuea src)Buffer. If the source buffer is not modifiedImplements org. |
| public int | poke(int
an index, byte[] int valuea b, int offset, int length)byte array valueImplements org. |
| public int | put(Buffer
The source src)Buffer it is not modified.Implements org. |
| public void | put(byte
a b)byte valueImplements org. |
| public int | put(byte[]
a b, int offset, int length)byte valueImplements org. |
| public int | put(byte[]
a b)byte valueImplements org. |
| public final int | putIndex()
Implements org. |
| public int | readFrom(InputStream
input stream in, int maximum number of bytes that may be read max)Implements org. |
| public void | |
| public void | |
| public void | setGetIndex(int
an getIndex)int valueImplements org. |
| public void | setMarkIndex(int
an index)int valueImplements org. |
| public void | |
| public int | |
| public Buffer | |
| public Buffer | |
| public Buffer | |
| public int | |
| public String | |
| public String | |
| public String | |
| public String | |
| public void | writeTo(OutputStream out)
Implements org. |
| __IMMUTABLE | back to summary |
|---|---|
| protected static final String __IMMUTABLE | |
| __READONLY | back to summary |
|---|---|
| protected static final String __READONLY | |
| __READWRITE | back to summary |
|---|---|
| protected static final String __READWRITE | |
| __VOLATILE | back to summary |
|---|---|
| protected static final String __VOLATILE | |
| _access | back to summary |
|---|---|
| protected int _access | |
| _get | back to summary |
|---|---|
| protected int _get | |
| _hash | back to summary |
|---|---|
| protected int _hash | |
| _hashGet | back to summary |
|---|---|
| protected int _hashGet | |
| _hashPut | back to summary |
|---|---|
| protected int _hashPut | |
| _mark | back to summary |
|---|---|
| protected int _mark | |
| _put | back to summary |
|---|---|
| protected int _put | |
| _string | back to summary |
|---|---|
| protected String _string | |
| _view | back to summary |
|---|---|
| protected View _view | |
| _volatile | back to summary |
|---|---|
| protected boolean _volatile | |
| AbstractBuffer | back to summary |
|---|---|
| public AbstractBuffer(int access, boolean isVolatile) Constructor for BufferView
| |
| asArray | back to summary |
|---|---|
| public byte[] asArray() Implements org.
| |
| asImmutableBuffer | back to summary |
|---|---|
| public Buffer asImmutableBuffer() Implements org.
| |
| asMutableBuffer | back to summary |
|---|---|
| public Buffer asMutableBuffer() Implements org.
| |
| asNonVolatileBuffer | back to summary |
|---|---|
| public Buffer asNonVolatileBuffer() Implements org.
| |
| asReadOnlyBuffer | back to summary |
|---|---|
| public Buffer asReadOnlyBuffer() Implements org.
| |
| buffer | back to summary |
|---|---|
| public Buffer buffer() Implements org. Doc from org. Get the unerlying buffer. If this buffer wraps a backing buffer.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clear the buffer. getIndex=0, putIndex=0. | |
| compact | back to summary |
|---|---|
| public void compact() Implements org. Doc from org. Compact the buffer by discarding bytes before the postion (or mark if set). Bytes from the getIndex (or mark) to the putIndex are moved to the beginning of the buffer and the values adjusted accordingly. | |
| duplicate | back to summary |
|---|---|
| public ByteArrayBuffer duplicate(int access) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| equalsIgnoreCase | back to summary |
|---|---|
| public boolean equalsIgnoreCase(Buffer b) Implements org.
| |
| get | back to summary |
|---|---|
| public byte get() Implements org. Doc from org. Get the byte at the current getIndex and increment it.
| |
| get | back to summary |
|---|---|
| public int get(byte[] b, int offset, int length) Implements org. Doc from org. Get bytes from the current postion and put them into the passed byte array. The getIndex is incremented by the number of bytes copied into the array.
| |
| get | back to summary |
|---|---|
| public Buffer get(int length) Implements org.
| |
| getIndex | back to summary |
|---|---|
| public final int getIndex() Implements org. Doc from org. The index within the buffer that will next be read or written.
| |
| hasContent | back to summary |
|---|---|
| public boolean hasContent() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isImmutable | back to summary |
|---|---|
| public boolean isImmutable() Implements org.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Implements org.
| |
| isVolatile | back to summary |
|---|---|
| public boolean isVolatile() Implements org.
| |
| length | back to summary |
|---|---|
| public int length() Implements org. Doc from org. The number of bytes from the getIndex to the putIndex
| |
| mark | back to summary |
|---|---|
| public void mark() Implements org. Doc from org. Set the mark to the current getIndex. | |
| mark | back to summary |
|---|---|
| public void mark(int offset) Implements org. Doc from org. Set the mark relative to the current getIndex
| |
| markIndex | back to summary |
|---|---|
| public int markIndex() Implements org. Doc from org. The current index of the mark.
| |
| peek | back to summary |
|---|---|
| public byte peek() Implements org. Doc from org. Get the byte at the current getIndex without incrementing the getIndex.
| |
| peek | back to summary |
|---|---|
| public Buffer peek(int index, int length) Implements org.
| |
| poke | back to summary |
|---|---|
| public int poke(int index, Buffer src) Implements org. Doc from org. Put the contents of the buffer at the specific index.
| |
| poke | back to summary |
|---|---|
| public int poke(int index, byte[] b, int offset, int length) Implements org. Doc from org. Put a specific byte to a specific getIndex.
| |
| put | back to summary |
|---|---|
| public int put(Buffer src) Implements org. Doc from org. Write the bytes from the source buffer to the current getIndex.
| |
| put | back to summary |
|---|---|
| public void put(byte b) Implements org. Doc from org. Put a byte to the current getIndex and increment the getIndex.
| |
| put | back to summary |
|---|---|
| public int put(byte[] b, int offset, int length) Implements org. Doc from org. Put a byte to the current getIndex and increment the getIndex.
| |
| put | back to summary |
|---|---|
| public int put(byte[] b) Implements org. Doc from org. Put a byte to the current getIndex and increment the getIndex.
| |
| putIndex | back to summary |
|---|---|
| public final int putIndex() Implements org. Doc from org. The index of the first element that should not be read.
| |
| readFrom | back to summary |
|---|---|
| public int readFrom(InputStream in, int max) throws IOException Implements org. Doc from org. Read the buffer's contents from the input stream
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the current getIndex to the mark | |
| rewind | back to summary |
|---|---|
| public void rewind() | |
| setGetIndex | back to summary |
|---|---|
| public void setGetIndex(int getIndex) Implements org. Doc from org. Set the buffers start getIndex.
| |
| setMarkIndex | back to summary |
|---|---|
| public void setMarkIndex(int index) Implements org. Doc from org. Set a specific value for the mark.
| |
| setPutIndex | back to summary |
|---|---|
| public void setPutIndex(int putIndex) Implements org.
| |
| skip | back to summary |
|---|---|
| public int skip(int n) Implements org. Doc from org. Skip _content. The getIndex is updated by min(remaining(), n)
| |
| slice | back to summary |
|---|---|
| public Buffer slice() Implements org.
| |
| sliceFromMark | back to summary |
|---|---|
| public Buffer sliceFromMark() Implements org.
| |
| sliceFromMark | back to summary |
|---|---|
| public Buffer sliceFromMark(int length) Implements org.
| |
| space | back to summary |
|---|---|
| public int space() Implements org. Doc from org. the space remaining in the buffer.
| |
| toDebugString | back to summary |
|---|---|
| public String toDebugString() | |
| toDetailString | back to summary |
|---|---|
| public String toDetailString() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| toString | back to summary |
|---|---|
| public String toString(String charset) Implements org. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream out) throws IOException Implements org. Doc from org. Write the buffer's contents to the output stream | |