Class BufferConfiguration<Configuration extends BufferConfiguration<Configuration>>

  • Type Parameters:
    Configuration - the type of the concrete subclass of this BufferConfiguration that is applicable to the ReaderLookaheadBufferBase subclass.
    Direct Known Subclasses:
    IonBufferConfiguration

    public abstract class BufferConfiguration<Configuration extends BufferConfiguration<Configuration>>
    extends java.lang.Object
    Provides logic common to all BufferConfiguration implementations.
    • Constructor Detail

      • BufferConfiguration

        protected BufferConfiguration​(BufferConfiguration.Builder<Configuration,​?> builder)
        Constructs an instance from the given Builder.
        Parameters:
        builder - the builder containing the settings to apply to the new configuration.
    • Method Detail

      • requireUnlimitedBufferSize

        protected void requireUnlimitedBufferSize()
        Requires that the maximum buffer size not be limited.
      • getInitialBufferSize

        public final int getInitialBufferSize()
        Returns:
        the initial size of the lookahead buffer, in bytes.
      • getMaximumBufferSize

        public final int getMaximumBufferSize()
        Returns:
        the maximum number of bytes that will be buffered.