Package com.amazon.ion
Class BufferConfiguration<Configuration extends BufferConfiguration<Configuration>>
java.lang.Object
com.amazon.ion.BufferConfiguration<Configuration>
- Type Parameters:
Configuration- the type of the concrete subclass of this BufferConfiguration.
- Direct Known Subclasses:
IonBufferConfiguration
public abstract class BufferConfiguration<Configuration extends BufferConfiguration<Configuration>>
extends Object
Provides logic common to all BufferConfiguration implementations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBufferConfiguration.Builder<Configuration extends BufferConfiguration<Configuration>,BuilderType extends BufferConfiguration.Builder<Configuration, BuilderType>> Provides logic common to all BufferConfiguration Builder implementations.static interfaceFunctional interface for reporting processed data.static interfaceFunctional interface for handling oversized values. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs an instance from the given Builder. -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal intprotected voidRequires that the maximum buffer size not be limited.
-
Constructor Details
-
BufferConfiguration
Constructs an instance from the given Builder.- Parameters:
builder- the builder containing the settings to apply to the new configuration.
-
-
Method Details
-
requireUnlimitedBufferSize
protected void requireUnlimitedBufferSize()Requires that the maximum buffer size not be limited. -
getInitialBufferSize
public final int getInitialBufferSize()- Returns:
- the initial size of the buffer, in bytes.
-
getMaximumBufferSize
public final int getMaximumBufferSize()- Returns:
- the maximum number of bytes that will be buffered.
-
getOversizedValueHandler
- Returns:
- the handler that will be notified when oversized values are encountered.
-
getDataHandler
- Returns:
- the handler that will be notified when data is processed.
-