类 InflaterSource
java.lang.Object
com.lark.oapi.okio.InflaterSource
- 所有已实现的接口:
Source,Closeable,AutoCloseable
A source that uses DEFLATE to decompress data
read from another source.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()Closes this source and releases the resources held by this source.longRemoves at least 1, and up tobyteCountbytes from this and appends them tosink.final booleanrefill()Refills the inflater with compressed data if it needs input.timeout()Returns the timeout for this source.
-
构造器详细资料
-
InflaterSource
-
-
方法详细资料
-
read
从接口复制的说明:SourceRemoves at least 1, and up tobyteCountbytes from this and appends them tosink. Returns the number of bytes read, or -1 if this source is exhausted.- 指定者:
read在接口中Source- 抛出:
IOException
-
refill
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
从接口复制的说明:SourceReturns the timeout for this source. -
close
从接口复制的说明:SourceCloses 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
-