类 ForwardingSource

java.lang.Object
com.lark.oapi.okio.ForwardingSource
所有已实现的接口:
Source, Closeable, AutoCloseable
直接已知子类:
HashingSource

public abstract class ForwardingSource extends Object implements Source
A Source which forwards calls to another. Useful for subclassing.
  • 构造器详细资料

    • ForwardingSource

      public ForwardingSource(Source delegate)
  • 方法详细资料

    • delegate

      public final Source delegate()
      Source to which this instance is delegating.
    • 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
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object