Interface IoAbsoluteWriter

All Known Subinterfaces:
ByteArray
All Known Implementing Classes:
AbstractByteArray, BufferByteArray, ByteArrayPool.DirectBufferByteArray, CompositeByteArray

public interface IoAbsoluteWriter
Provides absolute write access to a sequence of bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
     
    void
    put(int index, byte b)
    Puts a byte at the given index.
    void
    put(int index, IoBuffer bb)
    Puts bytes from the IoBuffer at the given index.
    void
    putChar(int index, char c)
    Puts a char at the given index.
    void
    putDouble(int index, double d)
    Puts a double at the given index.
    void
    putFloat(int index, float f)
    Puts a float at the given index.
    void
    putInt(int index, int i)
    Puts an int at the given index.
    void
    putLong(int index, long l)
    Puts a long at the given index.
    void
    putShort(int index, short s)
    Puts a short at the given index.
  • Method Details

    • first

      int first()
      Returns:
      the index of the first byte that can be accessed.
    • last

      int last()
      Returns:
      the index after the last byte that can be accessed.
    • order

      ByteOrder order()
      Returns:
      the order of the bytes.
    • put

      void put(int index, byte b)
      Puts a byte at the given index.
      Parameters:
      index - The position
      b - The byte to put
    • put

      void put(int index, IoBuffer bb)
      Puts bytes from the IoBuffer at the given index.
      Parameters:
      index - The position
      bb - The bytes to put
    • putShort

      void putShort(int index, short s)
      Puts a short at the given index.
      Parameters:
      index - The position
      s - The short to put
    • putInt

      void putInt(int index, int i)
      Puts an int at the given index.
      Parameters:
      index - The position
      i - The int to put
    • putLong

      void putLong(int index, long l)
      Puts a long at the given index.
      Parameters:
      index - The position
      l - The long to put
    • putFloat

      void putFloat(int index, float f)
      Puts a float at the given index.
      Parameters:
      index - The position
      f - The float to put
    • putDouble

      void putDouble(int index, double d)
      Puts a double at the given index.
      Parameters:
      index - The position
      d - The doubvle to put
    • putChar

      void putChar(int index, char c)
      Puts a char at the given index.
      Parameters:
      index - The position
      c - The char to put