类 ForwardingSource
java.lang.Object
com.lark.oapi.okio.ForwardingSource
- 所有已实现的接口:
Source,Closeable,AutoCloseable
- 直接已知子类:
HashingSource
A
Source which forwards calls to another. Useful for subclassing.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()Closes this source and releases the resources held by this source.final Sourcedelegate()Sourceto which this instance is delegating.longRemoves at least 1, and up tobyteCountbytes from this and appends them tosink.timeout()Returns the timeout for this source.toString()
-
构造器详细资料
-
ForwardingSource
-
-
方法详细资料
-
delegate
Sourceto which this instance is delegating. -
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
-
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
-
toString
-