Interface WritableChannel<A>

All Superinterfaces:
AutoCloseable, Closeable, Flushable, HasArrayOps<A>

public interface WritableChannel<A> extends HasArrayOps<A>, Flushable, Closeable
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    write(A array, int position, int length)
    Write method following the usual OutputStream protocol.
    default void
    writeRaw(Object array, int position, int length)
     

    Methods inherited from interface Closeable

    close

    Methods inherited from interface Flushable

    flush

    Methods inherited from interface HasArrayOps

    getArrayOps
  • Method Details

    • isOpen

      boolean isOpen()
    • write

      void write(A array, int position, int length) throws IOException
      Write method following the usual OutputStream protocol.
      Parameters:
      array - The array from which to obtain the data to write
      position - Position in the array from which to start reading
      length - Maximum number of items to read from the array.
      Throws:
      IOException
    • writeRaw

      default void writeRaw(Object array, int position, int length) throws IOException
      Throws:
      IOException