| Package | Description |
|---|---|
| org.aoju.bus.core.io.segment | |
| org.aoju.bus.http | |
| org.aoju.bus.http.bodys | |
| org.aoju.bus.http.metric.http | |
| org.aoju.bus.http.socket |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteBuffer
由字节数组段组成的不可变字节字符串 该类的存在是为了实现
缓冲区的有效快照 它被实现为一个段数组,加上一个目录
两个半部分,描述段如何组成这个字节字符串
|
| Modifier and Type | Field and Description |
|---|---|
static ByteString |
ByteString.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static ByteString |
ByteString.decodeBase64(String base64) |
static ByteString |
ByteString.decodeHex(String hex) |
static ByteString |
ByteString.encodeString(String s,
Charset charset) |
static ByteString |
ByteString.encodeUtf8(String s) |
ByteString |
BufferOption.get(int i) |
ByteString |
HashSource.hash() |
ByteString |
HashSink.hash() |
ByteString |
ByteString.hmacSha1(ByteString key) |
ByteString |
ByteBuffer.hmacSha1(ByteString key) |
ByteString |
Buffer.hmacSha1(ByteString key) |
ByteString |
ByteString.hmacSha256(ByteString key) |
ByteString |
ByteBuffer.hmacSha256(ByteString key) |
ByteString |
Buffer.hmacSha256(ByteString key) |
ByteString |
ByteString.hmacSha512(ByteString key) |
ByteString |
Buffer.hmacSha512(ByteString key) |
ByteString |
ByteString.md5() |
ByteString |
ByteBuffer.md5() |
ByteString |
Buffer.md5() |
static ByteString |
ByteString.of(byte... data) |
static ByteString |
ByteString.of(byte[] data,
int offset,
int byteCount) |
static ByteString |
ByteString.of(ByteBuffer data) |
static ByteString |
ByteString.read(InputStream in,
int byteCount) |
ByteString |
RealSource.readByteString() |
ByteString |
BufferSource.readByteString()
Removes all bytes bytes from this and returns them as a byte string.
|
ByteString |
Buffer.readByteString() |
ByteString |
RealSource.readByteString(long byteCount) |
ByteString |
BufferSource.readByteString(long byteCount)
Removes
byteCount bytes from this and returns them as a byte string. |
ByteString |
Buffer.readByteString(long byteCount) |
ByteString |
ByteString.sha1() |
ByteString |
ByteBuffer.sha1() |
ByteString |
Buffer.sha1() |
ByteString |
ByteString.sha256() |
ByteString |
ByteBuffer.sha256() |
ByteString |
Buffer.sha256() |
ByteString |
ByteString.sha512() |
ByteString |
Buffer.sha512() |
ByteString |
Buffer.snapshot() |
ByteString |
Buffer.snapshot(int byteCount) |
ByteString |
ByteString.substring(int beginIndex) |
ByteString |
ByteBuffer.substring(int beginIndex) |
ByteString |
ByteString.substring(int beginIndex,
int endIndex) |
ByteString |
ByteBuffer.substring(int beginIndex,
int endIndex) |
ByteString |
ByteString.toAsciiLowercase() |
ByteString |
ByteBuffer.toAsciiLowercase() |
ByteString |
ByteString.toAsciiUppercase() |
ByteString |
ByteBuffer.toAsciiUppercase() |
| Modifier and Type | Method and Description |
|---|---|
int |
ByteString.compareTo(ByteString byteString) |
boolean |
ByteString.endsWith(ByteString suffix) |
ByteString |
ByteString.hmacSha1(ByteString key) |
ByteString |
ByteBuffer.hmacSha1(ByteString key) |
ByteString |
Buffer.hmacSha1(ByteString key) |
static HashSink |
HashSink.hmacSha1(Sink sink,
ByteString key) |
static HashSource |
HashSource.hmacSha1(Source source,
ByteString key) |
ByteString |
ByteString.hmacSha256(ByteString key) |
ByteString |
ByteBuffer.hmacSha256(ByteString key) |
ByteString |
Buffer.hmacSha256(ByteString key) |
static HashSink |
HashSink.hmacSha256(Sink sink,
ByteString key) |
static HashSource |
HashSource.hmacSha256(Source source,
ByteString key) |
ByteString |
ByteString.hmacSha512(ByteString key) |
ByteString |
Buffer.hmacSha512(ByteString key) |
static HashSink |
HashSink.hmacSha512(Sink sink,
ByteString key) |
long |
RealSource.indexOf(ByteString bytes) |
int |
ByteString.indexOf(ByteString other) |
long |
BufferSource.indexOf(ByteString bytes)
Equivalent to
indexOf(bytes, 0). |
long |
Buffer.indexOf(ByteString bytes) |
int |
ByteString.indexOf(ByteString other,
int fromIndex) |
long |
RealSource.indexOf(ByteString bytes,
long fromIndex) |
long |
BufferSource.indexOf(ByteString bytes,
long fromIndex)
Returns the index of the first match for
bytes in the buffer at or after fromIndex. |
long |
Buffer.indexOf(ByteString bytes,
long fromIndex) |
long |
RealSource.indexOfElement(ByteString targetBytes) |
long |
BufferSource.indexOfElement(ByteString targetBytes) |
long |
Buffer.indexOfElement(ByteString targetBytes) |
long |
RealSource.indexOfElement(ByteString targetBytes,
long fromIndex) |
long |
BufferSource.indexOfElement(ByteString bytes,
long fromIndex) |
long |
Buffer.indexOfElement(ByteString targetBytes,
long fromIndex) |
int |
ByteString.lastIndexOf(ByteString other) |
int |
ByteString.lastIndexOf(ByteString other,
int fromIndex) |
static BufferOption |
BufferOption.of(ByteString... byteStrings) |
boolean |
ByteString.rangeEquals(int offset,
ByteString other,
int otherOffset,
int byteCount) |
boolean |
ByteBuffer.rangeEquals(int offset,
ByteString other,
int otherOffset,
int byteCount) |
boolean |
RealSource.rangeEquals(long offset,
ByteString bytes) |
boolean |
BufferSource.rangeEquals(long offset,
ByteString bytes)
true if the bytes at
offset in this source equal bytes. |
boolean |
Buffer.rangeEquals(long offset,
ByteString bytes) |
boolean |
RealSource.rangeEquals(long offset,
ByteString bytes,
int bytesOffset,
int byteCount) |
boolean |
BufferSource.rangeEquals(long offset,
ByteString bytes,
int bytesOffset,
int byteCount)
if
byteCount bytes at offset in this source equal bytes
* at bytesOffset. |
boolean |
Buffer.rangeEquals(long offset,
ByteString bytes,
int bytesOffset,
int byteCount) |
boolean |
ByteString.startsWith(ByteString prefix) |
BufferSink |
RealSink.write(ByteString byteString) |
BufferSink |
BufferSink.write(ByteString byteString) |
Buffer |
Buffer.write(ByteString byteString) |
| Modifier and Type | Field and Description |
|---|---|
static ByteString |
Builder.UTF_16_BE_BOM |
static ByteString |
Builder.UTF_16_LE_BOM |
static ByteString |
Builder.UTF_32_BE_BOM |
static ByteString |
Builder.UTF_32_LE_BOM |
static ByteString |
Builder.UTF_8_BOM |
| Modifier and Type | Method and Description |
|---|---|
static ResponseBody |
ResponseBody.create(MediaType contentType,
ByteString content)
新的响应体,它传输
content |
static RequestBody |
RequestBody.create(MediaType contentType,
ByteString content)
返回发送
content的新请求体 |
| Modifier and Type | Field and Description |
|---|---|
ByteString |
HttpHeaders.name
不区分大小写的ASCII编码中的名称
|
static ByteString |
HttpHeaders.PSEUDO_PREFIX |
static ByteString |
HttpHeaders.RESPONSE_STATUS |
static ByteString |
HttpHeaders.TARGET_AUTHORITY |
static ByteString |
HttpHeaders.TARGET_METHOD |
static ByteString |
HttpHeaders.TARGET_PATH |
static ByteString |
HttpHeaders.TARGET_SCHEME |
ByteString |
HttpHeaders.value
TF-8编码中的值.
|
| Constructor and Description |
|---|
HttpHeaders(ByteString name,
ByteString value) |
HttpHeaders(ByteString name,
String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketListener.onMessage(WebSocket webSocket,
ByteString bytes)
当接收到二进制(类型为
0x2)消息时调用 |
void |
RealWebSocket.onReadMessage(ByteString bytes) |
void |
RealWebSocket.onReadPing(ByteString payload) |
void |
RealWebSocket.onReadPong(ByteString buffer) |
boolean |
WebSocket.send(ByteString bytes)
尝试将
bytes作为二进制(类型为0x2)消息的数据发送
如果消息被加入队列,此方法将返回true。将溢出传出消息缓冲区(16 MiB)的消息将被拒绝,
并触发此web套接字的graceful shutdown。此方法在这种情况下返回false,
在此web套接字关闭、关闭或取消的任何其他情况下也返回false |
boolean |
RealWebSocket.send(ByteString bytes) |
Copyright © 2019. All rights reserved.