Interface CurrentByteBufferSink

All Superinterfaces:
ByteBufferSink
All Known Implementing Classes:
CurrentByteBufferSink.Adapter, SimpleByteBufferSink

public interface CurrentByteBufferSink extends ByteBufferSink
A ByteBufferSink that knows and provides a getter for the last buffer it gave out, to avoid unnecessary state in code that uses the buffer.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Convenience close method.
    default ByteBuffer
    ensureSpace(int need)
    Return the current buffer, guaranteed to have sufficient space remaining to append the requested number of bytes.
    default void
    Cause the current buffer to be accepted if it has any contents that aren't yet accepted into the sink.
    Access the current buffer for this sink.

    Methods inherited from interface io.deephaven.io.streams.ByteBufferSink

    acceptBuffer, close