static ByteString |
ByteString.decodeBase64(java.lang.String base64) |
Decodes the Base64-encoded bytes and returns their value as a byte string.
|
static ByteString |
ByteString.decodeHex(java.lang.String hex) |
Decodes the hex-encoded bytes and returns their value a byte string.
|
static ByteString |
ByteString.encodeString(java.lang.String s,
java.nio.charset.Charset charset) |
Returns a new byte string containing the charset-encoded bytes of s.
|
static ByteString |
ByteString.encodeUtf8(java.lang.String s) |
Returns a new byte string containing the UTF-8 bytes of s.
|
ByteString |
Options.get(int i) |
|
ByteString |
HashingSink.hash() |
Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
|
ByteString |
HashingSource.hash() |
Returns the hash of the bytes supplied thus far and resets the internal state of this source.
|
ByteString |
Buffer.hmacSha1(ByteString key) |
Returns the 160-bit SHA-1 HMAC of this buffer.
|
ByteString |
ByteString.hmacSha1(ByteString key) |
Returns the 160-bit SHA-1 HMAC of this byte string.
|
ByteString |
Buffer.hmacSha256(ByteString key) |
Returns the 256-bit SHA-256 HMAC of this buffer.
|
ByteString |
ByteString.hmacSha256(ByteString key) |
Returns the 256-bit SHA-256 HMAC of this byte string.
|
ByteString |
Buffer.hmacSha512(ByteString key) |
Returns the 512-bit SHA-512 HMAC of this buffer.
|
ByteString |
ByteString.hmacSha512(ByteString key) |
Returns the 512-bit SHA-512 HMAC of this byte string.
|
ByteString |
Buffer.md5() |
Returns the 128-bit MD5 hash of this buffer.
|
ByteString |
ByteString.md5() |
Returns the 128-bit MD5 hash of this byte string.
|
static ByteString |
ByteString.of(byte... data) |
Returns a new byte string containing a clone of the bytes of data.
|
static ByteString |
ByteString.of(byte[] data,
int offset,
int byteCount) |
Returns a new byte string containing a copy of byteCount bytes of data starting
at offset.
|
static ByteString |
ByteString.of(java.nio.ByteBuffer data) |
|
static ByteString |
ByteString.read(java.io.InputStream in,
int byteCount) |
Reads count bytes from in and returns the result.
|
ByteString |
Buffer.readByteString() |
|
ByteString |
Buffer.readByteString(long byteCount) |
|
ByteString |
BufferedSource.readByteString() |
Removes all bytes bytes from this and returns them as a byte string.
|
ByteString |
BufferedSource.readByteString(long byteCount) |
Removes byteCount bytes from this and returns them as a byte string.
|
ByteString |
Buffer.sha1() |
Returns the 160-bit SHA-1 hash of this buffer.
|
ByteString |
ByteString.sha1() |
Returns the 160-bit SHA-1 hash of this byte string.
|
ByteString |
Buffer.sha256() |
Returns the 256-bit SHA-256 hash of this buffer.
|
ByteString |
ByteString.sha256() |
Returns the 256-bit SHA-256 hash of this byte string.
|
ByteString |
Buffer.sha512() |
Returns the 512-bit SHA-512 hash of this buffer.
|
ByteString |
ByteString.sha512() |
Returns the 512-bit SHA-512 hash of this byte string.
|
ByteString |
Buffer.snapshot() |
Returns an immutable copy of this buffer as a byte string.
|
ByteString |
Buffer.snapshot(int byteCount) |
Returns an immutable copy of the first byteCount bytes of this buffer as a byte string.
|
ByteString |
ByteString.substring(int beginIndex) |
Returns a byte string that is a substring of this byte string, beginning at the specified
index until the end of this string.
|
ByteString |
ByteString.substring(int beginIndex,
int endIndex) |
Returns a byte string that is a substring of this byte string, beginning at the specified
beginIndex and ends at the specified endIndex.
|
ByteString |
ByteString.toAsciiLowercase() |
Returns a byte string equal to this byte string, but with the bytes 'A'
through 'Z' replaced with the corresponding byte in 'a' through 'z'.
|
ByteString |
ByteString.toAsciiUppercase() |
Returns a byte string equal to this byte string, but with the bytes 'a'
through 'z' replaced with the corresponding byte in 'A' through 'Z'.
|