Uses of Class
org.miaixz.bus.core.io.ByteString
Packages that use ByteString
-
Uses of ByteString in org.miaixz.bus.core.io
Fields in org.miaixz.bus.core.io declared as ByteStringModifier and TypeFieldDescriptionfinal ByteString[]SegmentBuffer.byteStringsstatic final ByteStringByteString.EMPTYA singleton emptyByteString.Methods in org.miaixz.bus.core.io that return ByteStringModifier and TypeMethodDescriptionstatic ByteStringByteString.decodeBase64(String base64) Decodes the Base64-encoded bytes and returns their value as a byte string.static ByteStringDecodes the hex-encoded bytes and returns their value a byte string.static ByteStringByteString.encodeString(String s, Charset charset) Returns a new byte string containing thecharset-encoded bytes ofs.static ByteStringByteString.encodeUtf8(String s) Returns a new byte string containing theUTF-8bytes ofs.SegmentBuffer.get(int i) ByteString.hmacSha1(ByteString key) Returns the 160-bit SHA-1 HMAC of this byte string.ByteString.hmacSha256(ByteString key) Returns the 256-bit SHA-256 HMAC of this byte string.ByteString.hmacSha512(ByteString key) Returns the 512-bit SHA-512 HMAC of this byte string.ByteString.md5()Returns the 128-bit MD5 hash of this byte string.static ByteStringByteString.of(byte... data) static ByteStringByteString.of(byte[] data, int offset, int byteCount) Returns a new byte string containing a copy ofbyteCountbytes ofdatastarting atoffset.static ByteStringByteString.of(ByteBuffer data) static ByteStringByteString.read(InputStream in, int byteCount) Readscountbytes frominand returns the result.ByteString.sha1()Returns the 160-bit SHA-1 hash of this byte string.ByteString.sha256()Returns the 256-bit SHA-256 hash of this byte string.ByteString.sha512()Returns the 512-bit SHA-512 hash of this byte string.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.substring(int beginIndex, int endIndex) Returns a byte string that is a substring of this byte string, beginning at the specifiedbeginIndexand ends at the specifiedendIndex.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.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'.Methods in org.miaixz.bus.core.io with parameters of type ByteStringModifier and TypeMethodDescriptionintByteString.compareTo(ByteString byteString) final booleanByteString.endsWith(ByteString suffix) ByteString.hmacSha1(ByteString key) Returns the 160-bit SHA-1 HMAC of this byte string.ByteString.hmacSha256(ByteString key) Returns the 256-bit SHA-256 HMAC of this byte string.ByteString.hmacSha512(ByteString key) Returns the 512-bit SHA-512 HMAC of this byte string.final intByteString.indexOf(ByteString other) final intByteString.indexOf(ByteString other, int fromIndex) final intByteString.lastIndexOf(ByteString other) final intByteString.lastIndexOf(ByteString other, int fromIndex) static SegmentBufferSegmentBuffer.of(ByteString... byteStrings) 构造booleanByteString.rangeEquals(int offset, ByteString other, int otherOffset, int byteCount) Returns true if the bytes of this in[offset..offset+byteCount)equal the bytes ofotherin[otherOffset..otherOffset+byteCount).final booleanByteString.startsWith(ByteString prefix) -
Uses of ByteString in org.miaixz.bus.core.io.buffer
Subclasses of ByteString in org.miaixz.bus.core.io.bufferModifier and TypeClassDescriptionclass由字节数组段组成的不可变字节字符串 该类的存在是为了实现 缓冲区的有效快照 它被实现为一个段数组,加上一个目录 两个半部分,描述段如何组成这个字节字符串Methods in org.miaixz.bus.core.io.buffer that return ByteStringModifier and TypeMethodDescriptionBuffer.hmacSha1(ByteString key) ByteBuffer.hmacSha1(ByteString key) Buffer.hmacSha256(ByteString key) ByteBuffer.hmacSha256(ByteString key) final ByteStringBuffer.hmacSha512(ByteString key) Buffer.md5()ByteBuffer.md5()Buffer.readByteString()Buffer.readByteString(long byteCount) Buffer.sha1()ByteBuffer.sha1()Buffer.sha256()ByteBuffer.sha256()Buffer.sha512()Buffer.snapshot()Returns an immutable copy of this buffer as a byte string.Buffer.snapshot(int byteCount) Returns an immutable copy of the firstbyteCountbytes of this buffer as a byte string.ByteBuffer.substring(int beginIndex) ByteBuffer.substring(int beginIndex, int endIndex) ByteBuffer.toAsciiLowercase()ByteBuffer.toAsciiUppercase()Methods in org.miaixz.bus.core.io.buffer with parameters of type ByteStringModifier and TypeMethodDescriptionBuffer.hmacSha1(ByteString key) ByteBuffer.hmacSha1(ByteString key) Buffer.hmacSha256(ByteString key) ByteBuffer.hmacSha256(ByteString key) final ByteStringBuffer.hmacSha512(ByteString key) longBuffer.indexOf(ByteString bytes) longBuffer.indexOf(ByteString bytes, long fromIndex) longBuffer.indexOfElement(ByteString targetBytes) longBuffer.indexOfElement(ByteString targetBytes, long fromIndex) booleanBuffer.rangeEquals(long offset, ByteString bytes) booleanBuffer.rangeEquals(long offset, ByteString bytes, int bytesOffset, int byteCount) booleanByteBuffer.rangeEquals(int offset, ByteString other, int otherOffset, int byteCount) Buffer.write(ByteString byteString) -
Uses of ByteString in org.miaixz.bus.core.io.sink
Methods in org.miaixz.bus.core.io.sink with parameters of type ByteStringModifier and TypeMethodDescriptionBufferSink.write(ByteString byteString) RealSink.write(ByteString byteString) -
Uses of ByteString in org.miaixz.bus.core.io.source
Methods in org.miaixz.bus.core.io.source that return ByteStringModifier and TypeMethodDescriptionBufferSource.readByteString()从中删除所有字节并将它们作为字节字符串返回BufferSource.readByteString(long byteCount) 从中删除byteCount个字节并将其作为字节字符串返回。RealSource.readByteString()RealSource.readByteString(long byteCount) Methods in org.miaixz.bus.core.io.source with parameters of type ByteStringModifier and TypeMethodDescriptionlongBufferSource.indexOf(ByteString bytes) longBufferSource.indexOf(ByteString bytes, long fromIndex) 返回缓冲区中bytes的第一个匹配项的索引,位于fromIndex处或之后。 这会根据需要扩展缓冲区,直到找到bytes。这会将无限数量的字节读入缓冲区。如果在找到请求的字节之前流已耗尽,则返回 -1。longRealSource.indexOf(ByteString bytes) longRealSource.indexOf(ByteString bytes, long fromIndex) longBufferSource.indexOfElement(ByteString targetBytes) longBufferSource.indexOfElement(ByteString targetBytes, long fromIndex) 返回此缓冲区中位于fromIndex或之后且包含targetBytes中任意字节的第一个索引。 这会根据需要扩展缓冲区,直到找到目标字节。这会将无限数量的字节读入缓冲区。如果在找到请求的字节之前流已耗尽,则返回 -1。longRealSource.indexOfElement(ByteString targetBytes) longRealSource.indexOfElement(ByteString targetBytes, long fromIndex) booleanBufferSource.rangeEquals(long offset, ByteString bytes) 如果此源中offset处的字节等于bytes,则返回 true。 这会根据需要扩展缓冲区,直到某个字节不匹配、所有字节都匹配,或者在足够的字节确定匹配之前流已耗尽。booleanBufferSource.rangeEquals(long offset, ByteString bytes, int bytesOffset, int byteCount) 如果此源中offset处的byteCount个字节等于bytesOffset处的bytes,则返回 true。 这会根据需要扩展缓冲区,直到某个字节不匹配、所有字节都匹配,或者在足够的字节确定匹配之前流已耗尽。booleanRealSource.rangeEquals(long offset, ByteString bytes) booleanRealSource.rangeEquals(long offset, ByteString bytes, int bytesOffset, int byteCount)