Uses of Interface
okio.Sink
-
-
Uses of Sink in okio
Subinterfaces of Sink in okio Modifier and Type Interface Description interfaceBufferedSinkA sink that keeps a buffer internally so that callers can do small writes without a performance penalty.Classes in okio that implement Sink Modifier and Type Class Description classBufferA collection of bytes in memory.classDeflaterSinkA sink that uses DEFLATE to compress data written to another source.classForwardingSinkASinkwhich forwards calls to another.classGzipSinkA sink that uses GZIP to compress written data to another sink.classHashingSinkA sink that computes a hash of the full stream of bytes it has accepted.Methods in okio that return Sink Modifier and Type Method Description static SinkOkio. appendingSink(java.io.File file)Returns a sink that appends tofile.static SinkOkio. blackhole()Returns a sink that writes nowhere.SinkForwardingSink. delegate()Sinkto which this instance is delegating.SinkAsyncTimeout. sink(Sink sink)Returns a new sink that delegates tosink, using this to implement timeouts.static SinkOkio. sink(java.io.File file)Returns a sink that writes tofile.static SinkOkio. sink(java.io.OutputStream out)Returns a sink that writes toout.static SinkOkio. sink(java.net.Socket socket)Returns a sink that writes tosocket.static SinkOkio. sink(java.nio.file.Path path, java.nio.file.OpenOption... options)Returns a sink that writes topath.SinkPipe. sink()Methods in okio with parameters of type Sink Modifier and Type Method Description static BufferedSinkOkio. buffer(Sink sink)Returns a new sink that buffers writes tosink.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 HashingSinkHashingSink. md5(Sink sink)Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.longBuffer. readAll(Sink sink)longBufferedSource. readAll(Sink sink)Removes all bytes from this and appends them tosink.static HashingSinkHashingSink. sha1(Sink sink)Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.static HashingSinkHashingSink. sha256(Sink sink)Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.static HashingSinkHashingSink. sha512(Sink sink)Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.SinkAsyncTimeout. sink(Sink sink)Returns a new sink that delegates tosink, using this to implement timeouts.Constructors in okio with parameters of type Sink Constructor Description DeflaterSink(Sink sink, java.util.zip.Deflater deflater)ForwardingSink(Sink delegate)GzipSink(Sink sink)
-