| Package | Description |
|---|---|
| org.aoju.bus.core.io.segment |
| 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 |
HashSink.hash() |
ByteString |
HashSource.hash() |
ByteString |
Buffer.hmacSha1(ByteString key) |
ByteString |
ByteBuffer.hmacSha1(ByteString key) |
ByteString |
ByteString.hmacSha1(ByteString key) |
ByteString |
Buffer.hmacSha256(ByteString key) |
ByteString |
ByteBuffer.hmacSha256(ByteString key) |
ByteString |
ByteString.hmacSha256(ByteString key) |
ByteString |
Buffer.hmacSha512(ByteString key) |
ByteString |
ByteString.hmacSha512(ByteString key) |
ByteString |
Buffer.md5() |
ByteString |
ByteBuffer.md5() |
ByteString |
ByteString.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 |
BufferSource.readByteString()
Removes all bytes bytes from this and returns them as a byte string.
|
ByteString |
Buffer.readByteString() |
ByteString |
RealSource.readByteString() |
ByteString |
BufferSource.readByteString(long byteCount)
Removes
byteCount bytes from this and returns them as a byte string. |
ByteString |
Buffer.readByteString(long byteCount) |
ByteString |
RealSource.readByteString(long byteCount) |
ByteString |
Buffer.sha1() |
ByteString |
ByteBuffer.sha1() |
ByteString |
ByteString.sha1() |
ByteString |
Buffer.sha256() |
ByteString |
ByteBuffer.sha256() |
ByteString |
ByteString.sha256() |
ByteString |
Buffer.sha512() |
ByteString |
ByteString.sha512() |
ByteString |
Buffer.snapshot() |
ByteString |
Buffer.snapshot(int byteCount) |
ByteString |
ByteBuffer.substring(int beginIndex) |
ByteString |
ByteString.substring(int beginIndex) |
ByteString |
ByteBuffer.substring(int beginIndex,
int endIndex) |
ByteString |
ByteString.substring(int beginIndex,
int endIndex) |
ByteString |
ByteBuffer.toAsciiLowercase() |
ByteString |
ByteString.toAsciiLowercase() |
ByteString |
ByteBuffer.toAsciiUppercase() |
ByteString |
ByteString.toAsciiUppercase() |
| Modifier and Type | Method and Description |
|---|---|
int |
ByteString.compareTo(ByteString byteString) |
boolean |
ByteString.endsWith(ByteString suffix) |
ByteString |
Buffer.hmacSha1(ByteString key) |
ByteString |
ByteBuffer.hmacSha1(ByteString key) |
ByteString |
ByteString.hmacSha1(ByteString key) |
static HashSink |
HashSink.hmacSha1(Sink sink,
ByteString key) |
static HashSource |
HashSource.hmacSha1(Source source,
ByteString key) |
ByteString |
Buffer.hmacSha256(ByteString key) |
ByteString |
ByteBuffer.hmacSha256(ByteString key) |
ByteString |
ByteString.hmacSha256(ByteString key) |
static HashSink |
HashSink.hmacSha256(Sink sink,
ByteString key) |
static HashSource |
HashSource.hmacSha256(Source source,
ByteString key) |
ByteString |
Buffer.hmacSha512(ByteString key) |
ByteString |
ByteString.hmacSha512(ByteString key) |
static HashSink |
HashSink.hmacSha512(Sink sink,
ByteString key) |
long |
BufferSource.indexOf(ByteString bytes)
Equivalent to
indexOf(bytes, 0). |
long |
Buffer.indexOf(ByteString bytes) |
long |
RealSource.indexOf(ByteString bytes) |
int |
ByteString.indexOf(ByteString other) |
int |
ByteString.indexOf(ByteString other,
int 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.indexOf(ByteString bytes,
long fromIndex) |
long |
BufferSource.indexOfElement(ByteString targetBytes) |
long |
Buffer.indexOfElement(ByteString targetBytes) |
long |
RealSource.indexOfElement(ByteString targetBytes) |
long |
BufferSource.indexOfElement(ByteString bytes,
long fromIndex) |
long |
Buffer.indexOfElement(ByteString targetBytes,
long fromIndex) |
long |
RealSource.indexOfElement(ByteString targetBytes,
long fromIndex) |
int |
ByteString.lastIndexOf(ByteString other) |
int |
ByteString.lastIndexOf(ByteString other,
int fromIndex) |
static BufferOption |
BufferOption.of(ByteString... byteStrings) |
boolean |
ByteBuffer.rangeEquals(int offset,
ByteString other,
int otherOffset,
int byteCount) |
boolean |
ByteString.rangeEquals(int offset,
ByteString other,
int otherOffset,
int byteCount) |
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) |
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 |
RealSource.rangeEquals(long offset,
ByteString bytes,
int bytesOffset,
int byteCount) |
boolean |
ByteString.startsWith(ByteString prefix) |
BufferSink |
RealSink.write(ByteString byteString) |
Buffer |
Buffer.write(ByteString byteString) |
BufferSink |
BufferSink.write(ByteString byteString) |
Copyright © 2019. All rights reserved.