|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.io.AbstractBuffer
org.eclipse.jetty.io.ByteArrayBuffer
public class ByteArrayBuffer
| 嵌套类摘要 | |
|---|---|
static class |
ByteArrayBuffer.CaseInsensitive
|
| 从接口 org.eclipse.jetty.io.Buffer 继承的嵌套类/接口 |
|---|
Buffer.CaseInsensitve |
| 字段摘要 | |
|---|---|
protected byte[] |
_bytes
|
| 从类 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 |
| 构造方法摘要 | |
|---|---|
|
ByteArrayBuffer(byte[] bytes)
|
|
ByteArrayBuffer(byte[] bytes,
int index,
int length)
|
|
ByteArrayBuffer(byte[] bytes,
int index,
int length,
int access)
|
|
ByteArrayBuffer(byte[] bytes,
int index,
int length,
int access,
boolean isVolatile)
|
|
ByteArrayBuffer(int size)
|
protected |
ByteArrayBuffer(int size,
int access,
boolean isVolatile)
|
|
ByteArrayBuffer(String value)
|
|
ByteArrayBuffer(String value,
boolean immutable)
|
|
ByteArrayBuffer(String value,
String encoding)
|
| 方法摘要 | |
|---|---|
byte[] |
array()
Get the underlying array, if one exists. |
int |
capacity()
The capacity of the buffer. |
void |
compact()
Compact the buffer by discarding bytes before the postion (or mark if set). |
boolean |
equals(Object obj)
|
boolean |
equalsIgnoreCase(Buffer b)
|
byte |
get()
Get the byte at the current getIndex and increment it. |
int |
hashCode()
|
byte |
peek(int index)
Get the byte at a specific index in the buffer. |
int |
peek(int index,
byte[] b,
int offset,
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. |
int |
readFrom(InputStream in,
int max)
Read the buffer's contents from the input stream |
int |
space()
the space remaining in the buffer. |
void |
writeTo(OutputStream out)
Write the buffer's contents to the output stream |
| 从类 org.eclipse.jetty.io.AbstractBuffer 继承的方法 |
|---|
asArray, asImmutableBuffer, asMutableBuffer, asNonVolatileBuffer, asReadOnlyBuffer, buffer, clear, duplicate, get, get, getIndex, hasContent, isImmutable, isReadOnly, isVolatile, length, mark, mark, markIndex, peek, peek, put, put, put, put, putIndex, reset, rewind, setGetIndex, setMarkIndex, setPutIndex, skip, slice, sliceFromMark, sliceFromMark, toDebugString, toDetailString, toString, toString, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected final byte[] _bytes
| 构造方法详细信息 |
|---|
protected ByteArrayBuffer(int size,
int access,
boolean isVolatile)
public ByteArrayBuffer(byte[] bytes)
public ByteArrayBuffer(byte[] bytes,
int index,
int length)
public ByteArrayBuffer(byte[] bytes,
int index,
int length,
int access)
public ByteArrayBuffer(byte[] bytes,
int index,
int length,
int access,
boolean isVolatile)
public ByteArrayBuffer(int size)
public ByteArrayBuffer(String value)
public ByteArrayBuffer(String value,
boolean immutable)
public ByteArrayBuffer(String value,
String encoding)
throws UnsupportedEncodingException
UnsupportedEncodingException| 方法详细信息 |
|---|
public byte[] array()
Buffer 复制的描述
byte[] backing this buffer or null if none exists.public int capacity()
Buffer 复制的描述
int valuepublic void compact()
Buffer 复制的描述
Buffer 中的 compactAbstractBuffer 中的 compactpublic boolean equals(Object obj)
AbstractBuffer 中的 equalspublic boolean equalsIgnoreCase(Buffer b)
Buffer 中的 equalsIgnoreCaseAbstractBuffer 中的 equalsIgnoreCaseboolean value true if case sensitive comparison on this bufferpublic byte get()
Buffer 复制的描述
Buffer 中的 getAbstractBuffer 中的 getbyte value from the current getIndex.public int hashCode()
AbstractBuffer 中的 hashCodepublic byte peek(int index)
Buffer 复制的描述
index - an int value
byte value
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
public void poke(int index,
byte b)
Buffer 复制的描述
index - an int valueb - a byte value
public int poke(int index,
Buffer src)
Buffer 复制的描述
Buffer 中的 pokeAbstractBuffer 中的 pokeindex - an int valuesrc - a Buffer. If the source buffer is not modified
public int poke(int index,
byte[] b,
int offset,
int length)
Buffer 复制的描述
Buffer 中的 pokeAbstractBuffer 中的 pokeindex - an int valueb - a byte array value
public void writeTo(OutputStream out)
throws IOException
Buffer 复制的描述
Buffer 中的 writeToAbstractBuffer 中的 writeToIOException
public int readFrom(InputStream in,
int max)
throws IOException
Buffer 复制的描述
Buffer 中的 readFromAbstractBuffer 中的 readFromin - input streammax - maximum number of bytes that may be read
IOExceptionpublic int space()
Buffer 复制的描述
Buffer 中的 spaceAbstractBuffer 中的 space
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||