Uses of Class
org.aoju.bus.core.io.ByteString
Packages that use ByteString
Package
Description
IO相关封装和工具类,包括Inputstream和OutputStream实现类和Buffer处理等
-
Uses of ByteString in org.aoju.bus.core.io
Fields in org.aoju.bus.core.io declared as ByteStringModifier and TypeFieldDescriptionfinal ByteString[]Blending.byteStringsstatic final ByteStringByteString.EMPTYA singleton emptyByteString.Methods in org.aoju.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.Blending.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.aoju.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 BlendingBlending.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.aoju.bus.core.io.buffer
Subclasses of ByteString in org.aoju.bus.core.io.bufferModifier and TypeClassDescriptionclass由字节数组段组成的不可变字节字符串 该类的存在是为了实现 缓冲区的有效快照 它被实现为一个段数组,加上一个目录 两个半部分,描述段如何组成这个字节字符串Methods in org.aoju.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.aoju.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.aoju.bus.core.io.sink
Methods in org.aoju.bus.core.io.sink with parameters of type ByteStringModifier and TypeMethodDescriptionBufferSink.write(ByteString byteString) RealSink.write(ByteString byteString) -
Uses of ByteString in org.aoju.bus.core.io.source
Methods in org.aoju.bus.core.io.source that return ByteStringModifier and TypeMethodDescriptionBufferSource.readByteString()Removes all bytes bytes from this and returns them as a byte string.BufferSource.readByteString(long byteCount) RemovesbyteCountbytes from this and returns them as a byte string.RealSource.readByteString()RealSource.readByteString(long byteCount) Methods in org.aoju.bus.core.io.source with parameters of type ByteStringModifier and TypeMethodDescriptionlongBufferSource.indexOf(ByteString bytes) Equivalent toindexOf(bytes, 0).longBufferSource.indexOf(ByteString bytes, long fromIndex) Returns the index of the first match forbytesin the buffer at or afterfromIndex.longRealSource.indexOf(ByteString bytes) longRealSource.indexOf(ByteString bytes, long fromIndex) longBufferSource.indexOfElement(ByteString targetBytes) Equivalent toindexOfElement(targetBytes, 0).longBufferSource.indexOfElement(ByteString targetBytes, long fromIndex) Returns the first index in this buffer that is at or afterfromIndexand that contains any of the bytes intargetBytes.longRealSource.indexOfElement(ByteString targetBytes) longRealSource.indexOfElement(ByteString targetBytes, long fromIndex) booleanBufferSource.rangeEquals(long offset, ByteString bytes) Returns true if the bytes atoffsetin this source equalbytes.booleanBufferSource.rangeEquals(long offset, ByteString bytes, int bytesOffset, int byteCount) Returns true ifbyteCountbytes atoffsetin this source equalbytesatbytesOffset.booleanRealSource.rangeEquals(long offset, ByteString bytes) booleanRealSource.rangeEquals(long offset, ByteString bytes, int bytesOffset, int byteCount)