Package org.eclipse.handly.buffer

# Interface IBufferListener

public interface IBufferListener
Interface for listeners to buffer state changes.

Since:
  1.4
See Also:
  - `IBuffer`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `BUFFER_SAVED`
  Bit-mask indicating that the `bufferSaved` method is supported by the buffer.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default void`
  `bufferSaved(IBuffer buffer)`
  Informs this listener that the contents of the given buffer has been saved.

- ## Field Details

  - ### BUFFER_SAVED

    static final int BUFFER_SAVED
    Bit-mask indicating that the `bufferSaved` method is supported by the buffer.
    See Also:
      - `IBuffer.getSupportedListenerMethods()`
      - Constant Field Values

- ## Method Details

  - ### bufferSaved

    default void bufferSaved(IBuffer buffer)
    Informs this listener that the contents of the given buffer has been saved.

    Note that this method is not invoked if the buffer's dirty flag is cleared for reasons other than saving the buffer's contents.

    In general, the buffer may be modified concurrently with calling this method.

    Parameters:
      `buffer` - the affected buffer (never `null`)