Class EncoderSink
java.lang.Object
org.eclipse.jetty.compression.EncoderSink
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Sink
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EncoderSink.WriteRecordencode(boolean last, ByteBuffer content) protected voidrelease()Release all resources held by this instance.voidwrite(boolean last, ByteBuffer content, org.eclipse.jetty.util.Callback callback)
-
Constructor Details
-
EncoderSink
protected EncoderSink(org.eclipse.jetty.io.Content.Sink sink)
-
-
Method Details
-
write
- Specified by:
writein interfaceorg.eclipse.jetty.io.Content.Sink
-
encode
- Parameters:
last- thelastflag to eventually pass toContent.Sink.write(boolean, ByteBuffer, Callback).content- the buffer to eventually pass toContent.Sink.write(boolean, ByteBuffer, Callback).- Returns:
- the
EncoderSink.WriteRecord. - Throws:
IllegalStateException- ifrelease()has already been called.
-
release
protected void release()Release all resources held by this instance. Any further
write attemptfails once this method has been called.Implementation must be idempotent.
-