Interface BufferHolder


@Deprecated public interface BufferHolder
Deprecated.
This API is going to be removed in future releases with no planned replacement. If it cannot be removed from your application, consider copying it into your codebase.
An object which contains a Buffer.
  • Method Details

    • content

      Buffer content()
      Deprecated.
      The buffer contained by this object.
      Returns:
      The buffer contained by this object.
    • duplicate

      BufferHolder duplicate()
      Deprecated.
      Duplicates this BufferHolder.
      Returns:
      Duplicates this BufferHolder.
    • replace

      BufferHolder replace(Buffer content)
      Deprecated.
      Returns a new BufferHolder which contains the specified content.
      Parameters:
      content - The Buffer to replace what is currently returned by content().
      Returns:
      a new BufferHolder which contains the specified content.