类 ForwardingSink

java.lang.Object
com.lark.oapi.okio.ForwardingSink
所有已实现的接口:
Sink, Closeable, Flushable, AutoCloseable
直接已知子类:
HashingSink

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

    • ForwardingSink

      public ForwardingSink(Sink delegate)
  • 方法详细资料

    • delegate

      public final Sink delegate()
      Sink to which this instance is delegating.
    • write

      public void write(Buffer source, long byteCount) throws IOException
      从接口复制的说明: Sink
      Removes byteCount bytes from source and appends them to this.
      指定者:
      write 在接口中 Sink
      抛出:
      IOException
    • flush

      public void flush() throws IOException
      从接口复制的说明: Sink
      Pushes all buffered bytes to their final destination.
      指定者:
      flush 在接口中 Flushable
      指定者:
      flush 在接口中 Sink
      抛出:
      IOException
    • timeout

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

      public void close() throws IOException
      从接口复制的说明: Sink
      Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 Closeable
      指定者:
      close 在接口中 Sink
      抛出:
      IOException
    • toString

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