Interface RandomAccessWrite

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clears all data of the buffer.
      void write​(byte[] b)
      Write a buffer of data to the stream.
      void write​(byte[] b, int offset, int length)
      Write a buffer of data to the stream.
      void write​(int b)
      Write a byte to the stream.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • write

        void write​(int b)
            throws java.io.IOException
        Write a byte to the stream.
        Parameters:
        b - The byte to write.
        Throws:
        java.io.IOException - If there is an IO error while writing.
      • write

        void write​(byte[] b)
            throws java.io.IOException
        Write a buffer of data to the stream.
        Parameters:
        b - The buffer to get the data from.
        Throws:
        java.io.IOException - If there is an error while writing the data.
      • write

        void write​(byte[] b,
                   int offset,
                   int length)
            throws java.io.IOException
        Write a buffer of data to the stream.
        Parameters:
        b - The buffer to get the data from.
        offset - An offset into the buffer to get the data from.
        length - The length of data to write.
        Throws:
        java.io.IOException - If there is an error while writing the data.
      • clear

        void clear()
            throws java.io.IOException
        Clears all data of the buffer.
        Throws:
        java.io.IOException