| 构造器和说明 |
|---|
InflaterSource(Source source,
java.util.zip.Inflater inflater) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes this source and releases the resources held by this source.
|
long |
read(Buffer sink,
long byteCount)
Removes at least 1, and up to
byteCount bytes from this and appends
them to sink. |
boolean |
refill()
Refills the inflater with compressed data if it needs input.
|
Timeout |
timeout()
Returns the timeout for this source.
|
public InflaterSource(Source source, java.util.zip.Inflater inflater)
public long read(Buffer sink, long byteCount) throws java.io.IOException
SourcebyteCount bytes from this and appends
them to sink. Returns the number of bytes read, or -1 if this
source is exhausted.public boolean refill()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
Source