Interface Buffered

All Known Implementing Classes:
Snippet.Buffer.SnippetWriter

public interface Buffered
A Buffered is a source or destination of data that is buffered before writing or reading. The bufferSize method allows all participants in the underlying stream to align on this buffer size for optimization. This interface is designed in the spirit of java.io.Flushable and java.io.Closeable
Since:
1.2.17
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The buffer size used by this stream while reading input or before writing output to the underlying stream.
  • Method Details

    • bufferSize

      int bufferSize()
      The buffer size used by this stream while reading input or before writing output to the underlying stream.
      Returns:
      the size of the buffer