类 InflaterSource

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

public final class InflaterSource extends Object implements Source
A source that uses DEFLATE to decompress data read from another source.
  • 构造器概要

    构造器
    构造器
    说明
    InflaterSource(Source source, Inflater inflater)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    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.
    final boolean
    Refills the inflater with compressed data if it needs input.
    Returns the timeout for this source.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • InflaterSource

      public InflaterSource(Source source, Inflater inflater)
  • 方法详细资料

    • 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
    • refill

      public final boolean refill() throws IOException
      Refills the inflater with compressed data if it needs input. (And only if it needs input). Returns true if the inflater required input but the source was exhausted.
      抛出:
      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