Uses of Interface
okio.Sink

  • Uses of Sink in okio

    Subinterfaces of Sink in okio
    Modifier and Type
    Interface
    Description
    interface 
    A 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
    final class 
    A collection of bytes in memory.
    final class 
    A sink that uses DEFLATE to compress data written to another source.
    class 
    A Sink which forwards calls to another.
    final class 
    A sink that uses GZIP to compress written data to another sink.
    final class 
    A 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 Sink
    Okio.appendingSink(File file)
    Returns a sink that appends to file.
    static Sink
    Okio.blackhole()
    Returns a sink that writes nowhere.
    final Sink
    ForwardingSink.delegate()
    Sink to which this instance is delegating.
    final Sink
    AsyncTimeout.sink(Sink sink)
    Returns a new sink that delegates to sink, using this to implement timeouts.
    static Sink
    Okio.sink(File file)
    Returns a sink that writes to file.
    static Sink
    Okio.sink(OutputStream out)
    Returns a sink that writes to out.
    static Sink
    Okio.sink(Socket socket)
    Returns a sink that writes to socket.
    static Sink
    Okio.sink(Path path, OpenOption... options)
    Returns a sink that writes to path.
    final Sink
    Pipe.sink()
     
    Methods in okio with parameters of type Sink
    Modifier and Type
    Method
    Description
    Okio.buffer(Sink sink)
    Returns a new sink that buffers writes to sink.
    HashingSink.hmacSha1(Sink sink, ByteString key)
    Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
    HashingSink.hmacSha256(Sink sink, ByteString key)
    Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
    HashingSink.hmacSha512(Sink sink, ByteString key)
    Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
    HashingSink.md5(Sink sink)
    Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
    long
    Buffer.readAll(Sink sink)
     
    long
    BufferedSource.readAll(Sink sink)
    Removes all bytes from this and appends them to sink.
    HashingSink.sha1(Sink sink)
    Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
    HashingSink.sha256(Sink sink)
    Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
    HashingSink.sha512(Sink sink)
    Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
    final Sink
    AsyncTimeout.sink(Sink sink)
    Returns a new sink that delegates to sink, using this to implement timeouts.
    Constructors in okio with parameters of type Sink
    Modifier
    Constructor
    Description
     
    DeflaterSink(Sink sink, Deflater deflater)
     
     
    ForwardingSink(Sink delegate)
     
     
    GzipSink(Sink sink)