Module methanol

Interface AsyncDecoder.ByteSink

  • Enclosing interface:
    AsyncDecoder

    public static interface AsyncDecoder.ByteSink
    A sink of bytes for writing the decompressed stream as ByteBuffer chunks.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer currentSink()
      Returns a ByteBuffer with available space for writing the decompressed stream.
      default void pushBytes​(java.nio.ByteBuffer src)
      Pushes src.remaining() bytes from the given source buffer to this sink.
    • Method Detail

      • currentSink

        java.nio.ByteBuffer currentSink()
        Returns a ByteBuffer with available space for writing the decompressed stream.
      • pushBytes

        default void pushBytes​(java.nio.ByteBuffer src)
        Pushes src.remaining() bytes from the given source buffer to this sink.