类 GzipSource

java.lang.Object
com.lark.oapi.okio.GzipSource
所有已实现的接口:
Source, Closeable, AutoCloseable

public final class GzipSource extends Object implements Source
A source that uses GZIP to decompress data read from another source.
  • 构造器详细资料

    • GzipSource

      public GzipSource(Source source)
  • 方法详细资料

    • read

      public long read(Buffer sink, long byteCount) throws IOException
      从接口复制的说明: Source
      Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.
      指定者:
      read 在接口中 Source
      抛出:
      IOException
    • timeout

      public Timeout timeout()
      从接口复制的说明: Source
      Returns the timeout for this source.
      指定者:
      timeout 在接口中 Source
    • close

      public void close() throws IOException
      从接口复制的说明: Source
      Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 Closeable
      指定者:
      close 在接口中 Source
      抛出:
      IOException