Home | History | Annotate | Download | only in okio

Lines Matching defs:source

24  * A source that uses <a href="http://tools.ietf.org/html/rfc1951">DEFLATE</a>
25 * to decompress data read from another source.
27 public final class InflaterSource implements Source {
28 private final BufferedSource source;
39 public InflaterSource(Source source, Inflater inflater) {
40 this(Okio.buffer(source), inflater);
48 InflaterSource(BufferedSource source, Inflater inflater) {
49 if (source == null) throw new IllegalArgumentException("source == null");
51 this.source = source;
82 if (sourceExhausted) throw new EOFException("source exhausted prematurely");
91 * it needs input). Returns true if the inflater required input but the source
100 // If there are compressed bytes in the source, assign them to the inflater.
101 if (source.exhausted()) return true;
104 Segment head = source.buffer().head;
115 source.skip(toRelease);
119 return source.timeout();
126 source.close();