Interface IoRelativeWriter

All Known Subinterfaces:
ByteArray.Cursor
All Known Implementing Classes:
BufferByteArray.CursorImpl, CompositeByteArray.CursorImpl, CompositeByteArrayRelativeWriter

public interface IoRelativeWriter
Provides relative read access to a sequence of bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
     
    void
    put(byte b)
    Puts a byte and advances the reader.
    void
    Puts enough bytes to fill the IoBuffer and advances the reader.
    void
    putChar(char c)
    Puts a char and advances the reader.
    void
    putDouble(double d)
    Puts a double and advances the reader.
    void
    putFloat(float f)
    Puts a float and advances the reader.
    void
    putInt(int i)
    Puts an int and advances the reader.
    void
    putLong(long l)
    Puts a long and advances the reader.
    void
    putShort(short s)
    Puts a short and advances the reader.
    void
    skip(int length)
    Advances the writer by the given number of bytes.
  • Method Details

    • getRemaining

      int getRemaining()
      Returns:
      the number of remaining bytes that can be read.
    • hasRemaining

      boolean hasRemaining()
      Returns:
      if there are any remaining bytes that can be read.
    • skip

      void skip(int length)
      Advances the writer by the given number of bytes.
      Parameters:
      length - The number of bytes to skip
    • order

      ByteOrder order()
      Returns:
      the bytes' order
    • put

      void put(byte b)
      Puts a byte and advances the reader.
      Parameters:
      b - The byte to put
    • put

      void put(IoBuffer bb)
      Puts enough bytes to fill the IoBuffer and advances the reader.
      Parameters:
      bb - The bytes to put
    • putShort

      void putShort(short s)
      Puts a short and advances the reader.
      Parameters:
      s - The short to put
    • putInt

      void putInt(int i)
      Puts an int and advances the reader.
      Parameters:
      i - The int to put
    • putLong

      void putLong(long l)
      Puts a long and advances the reader.
      Parameters:
      l - The long to put
    • putFloat

      void putFloat(float f)
      Puts a float and advances the reader.
      Parameters:
      f - The float to put
    • putDouble

      void putDouble(double d)
      Puts a double and advances the reader.
      Parameters:
      d - The double to put
    • putChar

      void putChar(char c)
      Puts a char and advances the reader.
      Parameters:
      c - The char to put