Constructor and Description |
---|
GzipSource(Source source) |
Modifier and Type | Method and Description |
---|---|
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 . |
Timeout |
timeout()
Returns the timeout for this source.
|
public GzipSource(Source source)
public long read(Buffer sink, long byteCount) throws IOException
Source
byteCount
bytes from this and appends
them to sink
. Returns the number of bytes read, or -1 if this
source is exhausted.read
in interface Source
IOException
public Timeout timeout()
Source
public void close() throws IOException
Source
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Source
IOException
Copyright © 2017. All rights reserved.