| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected byte[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public int | |
| public void | compact()
Overrides org. Implements org. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides org. |
| public boolean | equalsIgnoreCase(Buffer b)
Overrides org. Implements org. |
| public byte | get()
Overrides org. Implements org. |
| public int | hashCode()
Overrides org. |
| public byte | peek(int
an index)int valueImplements org. |
| public int | peek(int
an index, byte[] int valueThe byte array to peek into b, int The offset into the array to start peeking offset, int an length)int valueImplements org. |
| public void | poke(int
an index, byte int valuea b)byte valueImplements org. |
| public int | poke(int
an index, Buffer int valuea src)Buffer. If the source buffer is not modifiedOverrides org. Implements org. |
| public int | poke(int
an index, byte[] int valuea b, int offset, int length)byte array valueOverrides org. Implements org. |
| public int | readFrom(InputStream
input stream in, int maximum number of bytes that may be read max)Overrides org. Implements org. |
| public int | space()
Overrides org. Implements org. |
| public void | |
| public void | |
| public void | writeTo(OutputStream out)
Overrides org. Implements org. |
| _bytes | back to summary |
|---|---|
| protected byte[] _bytes | |
| ByteArrayBuffer | back to summary |
|---|---|
| protected ByteArrayBuffer(int access, boolean isVolatile) | |
| ByteArrayBuffer | back to summary |
|---|---|
| public ByteArrayBuffer(byte[] bytes) | |
| ByteArrayBuffer | back to summary |
|---|---|
| public ByteArrayBuffer(byte[] bytes, int index, int length) | |
| ByteArrayBuffer | back to summary |
|---|---|
| public ByteArrayBuffer(byte[] bytes, int index, int length, int access) | |
| ByteArrayBuffer | back to summary |
|---|---|
| public ByteArrayBuffer(byte[] bytes, int index, int length, int access, boolean isVolatile) | |
| ByteArrayBuffer | back to summary |
|---|---|
| public ByteArrayBuffer(int size) | |
| ByteArrayBuffer | back to summary |
|---|---|
| public ByteArrayBuffer(String value) | |
| ByteArrayBuffer | back to summary |
|---|---|
| public ByteArrayBuffer(String value, String encoding) throws UnsupportedEncodingException | |
| array | back to summary |
|---|---|
| public byte[] array() Implements org. Doc from org. Get the underlying array, if one exists.
| |
| capacity | back to summary |
|---|---|
| public int capacity() Implements org. Doc from org. The capacity of the buffer. This is the maximum putIndex that may be set.
| |
| compact | back to summary |
|---|---|
| public void compact() Overrides org. 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. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. 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) Overrides org. Implements org.
| |
| get | back to summary |
|---|---|
| public byte get() Overrides org. Implements org. Doc from org. Get the byte at the current getIndex and increment it.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. 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
| |
| peek | back to summary |
|---|---|
| public byte peek(int index) Implements org. Doc from org. Get the byte at a specific index in the buffer.
| |
| peek | back to summary |
|---|---|
| public int peek(int index, byte[] b, int offset, int length) Implements org.
| |
| poke | back to summary |
|---|---|
| public void poke(int index, byte b) Implements org. Doc from org. Put a specific byte to a specific getIndex.
| |
| poke | back to summary |
|---|---|
| public int poke(int index, Buffer src) Overrides org. 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) Overrides org. Implements org. Doc from org. Put a specific byte to a specific getIndex.
| |
| readFrom | back to summary |
|---|---|
| public int readFrom(InputStream in, int max) throws IOException Overrides org. Implements org. Doc from org. Read the buffer's contents from the input stream
| |
| space | back to summary |
|---|---|
| public int space() Overrides org. Implements org. Doc from org. the space remaining in the buffer.
| |
| wrap | back to summary |
|---|---|
| public void wrap(byte[] b, int off, int len) Wrap a byte array. | |
| wrap | back to summary |
|---|---|
| public void wrap(byte[] b) Wrap a byte array | |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream out) throws IOException Overrides org. Implements org. Doc from org. Write the buffer's contents to the output stream | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides org. |
| CaseInsensitive | back to summary |
|---|---|
| public CaseInsensitive(String s) | |
| CaseInsensitive | back to summary |
|---|---|
| public CaseInsensitive(byte[] b, int o, int l, int rw) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. 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.
| |