Interface ByteBufferWriter

All Known Implementing Classes:
AsyncProtobufLogWriter.OutputStreamWrapper, ByteArrayOutputStream, ByteBufferListOutputStream, ByteBufferOutputStream, ByteBufferWriterDataOutputStream, ByteBufferWriterOutputStream

@Private public interface ByteBufferWriter
This interface marks a class to support writing ByteBuffers into it.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(ByteBuffer b, int off, int len)
    Writes len bytes from the specified ByteBuffer starting at offset off
    void
    writeInt(int i)
    Writes an int to the underlying output stream as four bytes, high byte first.
  • Method Details

    • write

      void write(ByteBuffer b, int off, int len) throws IOException
      Writes len bytes from the specified ByteBuffer starting at offset off
      Parameters:
      b - the data.
      off - the start offset in the data.
      len - the number of bytes to write.
      Throws:
      IOException - if an I/O error occurs.
    • writeInt

      void writeInt(int i) throws IOException
      Writes an int to the underlying output stream as four bytes, high byte first.
      Parameters:
      i - the int to write
      Throws:
      IOException - if an I/O error occurs.