Class EncoderSink

java.lang.Object
org.eclipse.jetty.compression.EncoderSink
All Implemented Interfaces:
Content.Sink

public abstract class EncoderSink extends Object implements Content.Sink
  • Constructor Details

  • Method Details

    • write

      public void write(boolean last, ByteBuffer content, Callback callback)
      Description copied from interface: Content.Sink

      Writes the given ByteBuffer, notifying the Callback when the write is complete.

      Implementations guarantee that calls to this method are safely reentrant so that stack overflows are avoided in the case of mutual recursion between the execution of the Callback and a call to this method.

      Specified by:
      write in interface Content.Sink
      Parameters:
      last - whether the ByteBuffer is the last to write
      content - the ByteBuffer to write
      callback - the callback to notify when the write operation is complete
    • encode

      protected abstract EncoderSink.WriteRecord encode(boolean last, ByteBuffer content)
    • release

      protected void release()