接口的使用
com.lark.oapi.okio.Sink
使用Sink的程序包
程序包
说明
-
com.lark.oapi.okhttp.internal.cache中Sink的使用
-
com.lark.oapi.okhttp.internal.connection中Sink的使用
-
com.lark.oapi.okhttp.internal.http中Sink的使用
修饰符和类型方法说明ExchangeCodec.createRequestBody(Request request, long contentLength) Returns an output stream where the request body can be streamed. -
com.lark.oapi.okhttp.internal.http1中Sink的使用
-
com.lark.oapi.okhttp.internal.http2中Sink的使用
修饰符和类型方法说明Http2ExchangeCodec.createRequestBody(Request request, long contentLength) Http2Stream.getSink()Returns a sink that can be used to write data to the peer. -
com.lark.oapi.okhttp.internal.io中Sink的使用
-
com.lark.oapi.okio中Sink的使用
修饰符和类型接口说明interfaceA sink that keeps a buffer internally so that callers can do small writes without a performance penalty.实现Sink的com.lark.oapi.okio中的类修饰符和类型类说明final classA collection of bytes in memory.final classA sink that uses DEFLATE to compress data written to another source.classASinkwhich forwards calls to another.final classA sink that uses GZIP to compress written data to another sink.final classA sink that computes a hash of the full stream of bytes it has accepted.返回Sink的com.lark.oapi.okio中的方法修饰符和类型方法说明static SinkOkio.appendingSink(File file) Returns a sink that appends tofile.static SinkOkio.blackhole()Returns a sink that writes nowhere.final SinkForwardingSink.delegate()Sinkto which this instance is delegating.final SinkReturns a new sink that delegates tosink, using this to implement timeouts.static SinkReturns a sink that writes tofile.static SinkOkio.sink(OutputStream out) Returns a sink that writes toout.static SinkReturns a sink that writes tosocket.static SinkOkio.sink(Path path, OpenOption... options) Returns a sink that writes topath.final SinkPipe.sink()参数类型为Sink的com.lark.oapi.okio中的方法修饰符和类型方法说明static BufferedSinkReturns a new sink that buffers writes tosink.voidWrites any buffered contents of this pipe tosink, then replace this pipe's source withsink.static HashingSinkHashingSink.hmacSha1(Sink sink, ByteString key) Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.static HashingSinkHashingSink.hmacSha256(Sink sink, ByteString key) Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.static HashingSinkHashingSink.hmacSha512(Sink sink, ByteString key) Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.static HashingSinkReturns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.longlongRemoves all bytes from this and appends them tosink.static HashingSinkReturns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.static HashingSinkReturns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.static HashingSinkReturns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.final SinkReturns a new sink that delegates tosink, using this to implement timeouts.参数类型为Sink的com.lark.oapi.okio中的构造器