|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.io.AbstractBuffer
org.eclipse.jetty.io.View
public class View
A View on another buffer. Allows operations that do not change the _content or indexes of the backing buffer.
| 嵌套类摘要 | |
|---|---|
static class |
View.CaseInsensitive
|
| 从接口 org.eclipse.jetty.io.Buffer 继承的嵌套类/接口 |
|---|
Buffer.CaseInsensitve |
| 字段摘要 |
|---|
| 从类 org.eclipse.jetty.io.AbstractBuffer 继承的字段 |
|---|
__IMMUTABLE, __READONLY, __READWRITE, __VOLATILE, _access, _get, _hash, _hashGet, _hashPut, _mark, _put, _string, _view, _volatile |
| 从接口 org.eclipse.jetty.io.Buffer 继承的字段 |
|---|
IMMUTABLE, NON_VOLATILE, READONLY, READWRITE, VOLATILE |
| 构造方法摘要 | |
|---|---|
View()
|
|
View(Buffer buffer)
|
|
View(Buffer buffer,
int mark,
int get,
int put,
int access)
|
|
| 方法摘要 | |
|---|---|
byte[] |
array()
Get the underlying array, if one exists. |
Buffer |
buffer()
Get the underlying buffer. |
int |
capacity()
The capacity of the buffer. |
void |
clear()
Clear the buffer. getIndex=0, putIndex=0. |
void |
compact()
Compact the buffer by discarding bytes before the postion (or mark if set). |
boolean |
equals(Object obj)
|
boolean |
isReadOnly()
|
boolean |
isVolatile()
|
byte |
peek(int index)
Get the byte at a specific index in the buffer. |
int |
peek(int index,
byte[] b,
int offset,
int length)
|
Buffer |
peek(int index,
int length)
|
int |
poke(int index,
Buffer src)
Put the contents of the buffer at the specific index. |
void |
poke(int index,
byte b)
Put a specific byte to a specific getIndex. |
int |
poke(int index,
byte[] b,
int offset,
int length)
Put a specific byte to a specific getIndex. |
String |
toString()
|
void |
update(Buffer buffer)
Update view to buffer |
void |
update(int get,
int put)
|
| 从类 org.eclipse.jetty.io.AbstractBuffer 继承的方法 |
|---|
asArray, asImmutableBuffer, asMutableBuffer, asNonVolatileBuffer, asReadOnlyBuffer, duplicate, equalsIgnoreCase, get, get, get, getIndex, hasContent, hashCode, isImmutable, length, mark, mark, markIndex, peek, put, put, put, put, putIndex, readFrom, reset, rewind, setGetIndex, setMarkIndex, setPutIndex, skip, slice, sliceFromMark, sliceFromMark, space, toDebugString, toDetailString, toString, toString, writeTo |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public View(Buffer buffer,
int mark,
int get,
int put,
int access)
buffer - The Buffer on which we are presenting a View.mark - The initial value of the mark indexget - The initial value of the get indexput - The initial value of the put indexaccess - The access level - one of the constants from Buffer.public View(Buffer buffer)
public View()
| 方法详细信息 |
|---|
public void update(Buffer buffer)
public void update(int get,
int put)
public byte[] array()
Buffer 复制的描述
Buffer.array() from the underlying buffer.public Buffer buffer()
Buffer 复制的描述
Buffer 中的 bufferAbstractBuffer 中的 bufferBuffer.buffer() from the underlying buffer.public int capacity()
Buffer 复制的描述
Buffer.capacity() of the underlying buffer.public void clear()
Buffer 复制的描述
Buffer 中的 clearAbstractBuffer 中的 clearpublic void compact()
Buffer 复制的描述
Buffer 中的 compactAbstractBuffer 中的 compactpublic boolean equals(Object obj)
AbstractBuffer 中的 equalspublic boolean isReadOnly()
Buffer 中的 isReadOnlyAbstractBuffer 中的 isReadOnlyread onlypublic boolean isVolatile()
Buffer 中的 isVolatileAbstractBuffer 中的 isVolatilevolatilepublic byte peek(int index)
Buffer 复制的描述
index - an int value
Buffer.peek(int) on the underlying buffer
public int peek(int index,
byte[] b,
int offset,
int length)
index - an int valueb - The byte array to peek intooffset - The offset into the array to start peekinglength - an int value
Buffer.peek(int, byte[], int, int) on the underlying buffer
public Buffer peek(int index,
int length)
Buffer 中的 peekAbstractBuffer 中的 peekindex - an int valuelength - an int value
Buffer.peek(int, int) on the underlying buffer
public int poke(int index,
Buffer src)
Buffer 复制的描述
Buffer 中的 pokeAbstractBuffer 中的 pokeindex - src -
public void poke(int index,
byte b)
Buffer 复制的描述
index - b -
public int poke(int index,
byte[] b,
int offset,
int length)
Buffer 复制的描述
Buffer 中的 pokeAbstractBuffer 中的 pokeindex - b - offset - length -
public String toString()
AbstractBuffer 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||