| java.lang.Object org.mortbay.io.AbstractBuffer org.mortbay.io.View
View | public class View extends AbstractBuffer (Code) | | A View on another buffer. Allows operations that do not change the _content or
indexes of the backing buffer.
author: gregw |
Constructor Summary | |
public | View(Buffer buffer, int mark, int get, int put, int access) | public | View(Buffer buffer) | public | View() |
Method Summary | |
public byte[] | array() | public Buffer | buffer() | public int | capacity() | public void | clear() | public void | compact() | public boolean | equals(Object arg0) | public boolean | isReadOnly() | public boolean | isVolatile() | public byte | peek(int index) | public int | peek(int index, byte[] b, int offset, int length) | public Buffer | peek(int index, int length) | public int | poke(int index, Buffer src) | public void | poke(int index, byte b) | public int | poke(int index, byte[] b, int offset, int length) | public String | toString() | public void | update(Buffer buffer) | public void | update(int get, int put) |
View | public View(Buffer buffer, int mark, int get, int put, int access)(Code) | | Parameters: buffer - The Buffer on which we are presenting a View . Parameters: mark - The initial value of the Buffer.markIndex mark index Parameters: get - The initial value of the Buffer.getIndex get index Parameters: put - The initial value of the Buffer.putIndex put index Parameters: access - The access level - one of the constants from Buffer. |
clear | public void clear()(Code) | | |
compact | public void compact()(Code) | | |
poke | public int poke(int index, Buffer src)(Code) | | Parameters: index - Parameters: src - |
poke | public void poke(int index, byte b)(Code) | | Parameters: index - Parameters: b - |
poke | public int poke(int index, byte[] b, int offset, int length)(Code) | | Parameters: index - Parameters: b - Parameters: offset - Parameters: length - |
update | public void update(Buffer buffer)(Code) | | Update view to buffer
|
update | public void update(int get, int put)(Code) | | |
Methods inherited from org.mortbay.io.AbstractBuffer | public byte[] asArray()(Code)(Java Doc) public Buffer asImmutableBuffer()(Code)(Java Doc) public Buffer asMutableBuffer()(Code)(Java Doc) public Buffer asNonVolatileBuffer()(Code)(Java Doc) public Buffer asReadOnlyBuffer()(Code)(Java Doc) public Buffer buffer()(Code)(Java Doc) public void clear()(Code)(Java Doc) public void compact()(Code)(Java Doc) public ByteArrayBuffer duplicate(int access)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public boolean equalsIgnoreCase(Buffer b)(Code)(Java Doc) public byte get()(Code)(Java Doc) public int get(byte[] b, int offset, int length)(Code)(Java Doc) public Buffer get(int length)(Code)(Java Doc) final public int getIndex()(Code)(Java Doc) public boolean hasContent()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isImmutable()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) public boolean isVolatile()(Code)(Java Doc) public int length()(Code)(Java Doc) public void mark()(Code)(Java Doc) public void mark(int offset)(Code)(Java Doc) public int markIndex()(Code)(Java Doc) public byte peek()(Code)(Java Doc) public Buffer peek(int index, int length)(Code)(Java Doc) public int poke(int index, Buffer src)(Code)(Java Doc) public int poke(int index, byte[] b, int offset, int length)(Code)(Java Doc) public int put(Buffer src)(Code)(Java Doc) public void put(byte b)(Code)(Java Doc) public int put(byte[] b, int offset, int length)(Code)(Java Doc) public int put(byte[] b)(Code)(Java Doc) final public int putIndex()(Code)(Java Doc) public int readFrom(InputStream in, int max) throws IOException(Code)(Java Doc) public void reset()(Code)(Java Doc) public void rewind()(Code)(Java Doc) public void setGetIndex(int getIndex)(Code)(Java Doc) public void setMarkIndex(int index)(Code)(Java Doc) public void setPutIndex(int putIndex)(Code)(Java Doc) public int skip(int n)(Code)(Java Doc) public Buffer slice()(Code)(Java Doc) public Buffer sliceFromMark()(Code)(Java Doc) public Buffer sliceFromMark(int length)(Code)(Java Doc) public int space()(Code)(Java Doc) public String toDebugString()(Code)(Java Doc) public String toDetailString()(Code)(Java Doc) public String toString()(Code)(Java Doc) public void writeTo(OutputStream out) throws IOException(Code)(Java Doc)
|
|
|