Uses of Interface
okio.Source
-
-
Uses of Source in okio
Subinterfaces of Source in okio Modifier and Type Interface Description interfaceBufferedSourceA source that keeps a buffer internally so that callers can do small reads without a performance penalty.Classes in okio that implement Source Modifier and Type Class Description classBufferA collection of bytes in memory.classForwardingSourceASourcewhich forwards calls to another.classGzipSourceA source that uses GZIP to decompress data read from another source.classHashingSourceA source that computes a hash of the full stream of bytes it has supplied.classInflaterSourceA source that uses DEFLATE to decompress data read from another source.Methods in okio that return Source Modifier and Type Method Description SourceForwardingSource. delegate()Sourceto which this instance is delegating.SourceAsyncTimeout. source(Source source)Returns a new source that delegates tosource, using this to implement timeouts.static SourceOkio. source(java.io.File file)Returns a source that reads fromfile.static SourceOkio. source(java.io.InputStream in)Returns a source that reads fromin.static SourceOkio. source(java.net.Socket socket)Returns a source that reads fromsocket.static SourceOkio. source(java.nio.file.Path path, java.nio.file.OpenOption... options)Returns a source that reads frompath.SourcePipe. source()Methods in okio with parameters of type Source Modifier and Type Method Description static BufferedSourceOkio. buffer(Source source)Returns a new source that buffers reads fromsource.static HashingSourceHashingSource. hmacSha1(Source source, ByteString key)Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.static HashingSourceHashingSource. hmacSha256(Source source, ByteString key)Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.static HashingSourceHashingSource. md5(Source source)Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.static HashingSourceHashingSource. sha1(Source source)Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.static HashingSourceHashingSource. sha256(Source source)Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.SourceAsyncTimeout. source(Source source)Returns a new source that delegates tosource, using this to implement timeouts.BufferedSinkBuffer. write(Source source, long byteCount)BufferedSinkBufferedSink. write(Source source, long byteCount)RemovesbyteCountbytes fromsourceand appends them to this sink.longBuffer. writeAll(Source source)longBufferedSink. writeAll(Source source)Removes all bytes fromsourceand appends them to this sink.Constructors in okio with parameters of type Source Constructor Description ForwardingSource(Source delegate)GzipSource(Source source)InflaterSource(Source source, java.util.zip.Inflater inflater)
-