Interface ArrayWritable<A>

All Superinterfaces:
HasArrayOps<A>
All Known Subinterfaces:
Buffer<A>, BufferDelegate<A>, BufferLike<A>, BufferLikeDelegate<A,D>, RangeBuffer<A>, RangeBufferDelegate<A>, RangeBufferDelegateMutable<A>, SubBuffer<A>
All Known Implementing Classes:
BufferDelegateBase, BufferOverArray, BufferOverReadableChannel, BufferOverReadableChannel.BufferView, BufferWithPages, RangeBufferDelegateBase, RangeBufferDelegateMutableImpl, RangeBufferImpl, RangeBufferUnion, SubBufferImpl

public interface ArrayWritable<A> extends HasArrayOps<A>
Interface for putting an array of items into a sequence at a certain offset
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    put(long offset, Object item)
     
    default void
    write(long offset, A arrayWithItemsOfTypeT)
     
    default void
    write(long offset, A arrayWithItemsOfTypeT, int arrOffset)
     
    void
    write(long offsetInBuffer, A arrayWithItemsOfTypeT, int arrOffset, int arrLength)
    The method that needs to be implemented; all other methods default-delegate to this one.

    Methods inherited from interface HasArrayOps

    getArrayOps
  • Method Details

    • write

      void write(long offsetInBuffer, A arrayWithItemsOfTypeT, int arrOffset, int arrLength) throws IOException
      The method that needs to be implemented; all other methods default-delegate to this one.
      Throws:
      IOException
    • put

      default void put(long offset, Object item) throws IOException
      Throws:
      IOException
    • write

      default void write(long offset, A arrayWithItemsOfTypeT, int arrOffset) throws IOException
      Throws:
      IOException
    • write

      default void write(long offset, A arrayWithItemsOfTypeT) throws IOException
      Throws:
      IOException