| Modifier and Type | Class and Description |
|---|---|
| public static class | IonBufferConfiguration.
Builds IonBufferConfiguration instances. |
| public static interface | IonBufferConfiguration.
Functional interface for handling oversized symbol tables. |
| Modifier and Type | Field and Description |
|---|---|
| public static final IonBufferConfiguration | DEFAULT
The standard configuration. |
| private final IonBufferConfiguration. | oversizedSymbolTableHandler
The handler that will be notified when oversized symbol tables are encountered. |
| Access | Constructor and Description |
|---|---|
| private | IonBufferConfiguration(IonBufferConfiguration.
the builder containing the settings to apply to the new configuration. builderConstructs an instance from the given Builder. |
| Modifier and Type | Method and Description |
|---|---|
| public IonBufferConfiguration. | Returns: the handler that will be notified when oversized symbol tables are encountered.
|
| DEFAULT | back to summary |
|---|---|
| public static final IonBufferConfiguration DEFAULT The standard configuration. This will be used unless the user chooses custom settings. | |
| oversizedSymbolTableHandler | back to summary |
|---|---|
| private final IonBufferConfiguration. The handler that will be notified when oversized symbol tables are encountered. | |
| IonBufferConfiguration | back to summary |
|---|---|
| private IonBufferConfiguration(IonBufferConfiguration. Constructs an instance from the given Builder.
| |
| getOversizedSymbolTableHandler | back to summary |
|---|---|
public IonBufferConfiguration.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | MINIMUM_MAX_VALUE_SIZE
4-byte IVM + 1 byte user value. |
| private static final BufferConfiguration. | NO_OP_DATA_HANDLER
A DataHandler that does nothing. |
| private static final IonBufferConfiguration. | NO_OP_OVERSIZED_SYMBOL_TABLE_HANDLER
An OversizedSymbolTableHandler that does nothing. |
| private static final BufferConfiguration. | NO_OP_OVERSIZED_VALUE_HANDLER
An OversizedValueHandler that does nothing. |
| private IonBufferConfiguration. | oversizedSymbolTableHandler
The handler that will be notified when oversized symbol tables are encountered. |
| private static final IonBufferConfiguration. | |
| private static final BufferConfiguration. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public IonBufferConfiguration | build()
Implements abstract com. Creates a new BufferConfiguration from the Builder's current settings. |
| public static IonBufferConfiguration. | Returns: a new mutable builder.an existing configuration. existingConfiguration)Provides a new builder that would build IonBufferConfiguration instances with configuration identical to the given configuration. |
| public int | getMinimumMaximumBufferSize()
Implements abstract com. Gets the minimum allowed maximum buffer size. |
| public BufferConfiguration. | getNoOpDataHandler()
Implements abstract com.
|
| public IonBufferConfiguration. | |
| public BufferConfiguration. | |
| public IonBufferConfiguration. | Returns: the handler that will be notified when oversized symbol tables are encountered.
|
| public IonBufferConfiguration. | Returns: an OversizedSymbolTableHandler that always throwsIonException.
|
| public BufferConfiguration. | |
| public IonBufferConfiguration. | Returns: this builder.the handler. handlerSets the handler that will be notified when oversized symbol tables are encountered. |
| public static IonBufferConfiguration. | Returns: a standard Builder.Provides the standard builder with the default initial buffer size, an unbounded maximum buffer size, and an event handler that does nothing. |
| private static void |
| MINIMUM_MAX_VALUE_SIZE | back to summary |
|---|---|
| private static final int MINIMUM_MAX_VALUE_SIZE 4-byte IVM + 1 byte user value. | |
| NO_OP_DATA_HANDLER | back to summary |
|---|---|
| private static final BufferConfiguration. A DataHandler that does nothing. | |
| NO_OP_OVERSIZED_SYMBOL_TABLE_HANDLER | back to summary |
|---|---|
| private static final IonBufferConfiguration. An OversizedSymbolTableHandler that does nothing. | |
| NO_OP_OVERSIZED_VALUE_HANDLER | back to summary |
|---|---|
| private static final BufferConfiguration. An OversizedValueHandler that does nothing. | |
| oversizedSymbolTableHandler | back to summary |
|---|---|
| private IonBufferConfiguration. The handler that will be notified when oversized symbol tables are encountered. | |
| THROWING_OVERSIZED_SYMBOL_TABLE_HANDLER | back to summary |
|---|---|
| private static final IonBufferConfiguration. | |
| THROWING_OVERSIZED_VALUE_HANDLER | back to summary |
|---|---|
| private static final BufferConfiguration. | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| build | back to summary |
|---|---|
| public IonBufferConfiguration build() Implements abstract com. Doc from com. Creates a new BufferConfiguration from the Builder's current settings.
| |
| from | back to summary |
|---|---|
| public static IonBufferConfiguration. Provides a new builder that would build IonBufferConfiguration instances with configuration identical to the given configuration.
| |
| getMinimumMaximumBufferSize | back to summary |
|---|---|
| public int getMinimumMaximumBufferSize() Implements abstract com. Doc from com. Gets the minimum allowed maximum buffer size.
| |
| getNoOpDataHandler | back to summary |
|---|---|
| public BufferConfiguration. Implements abstract com.
| |
| getNoOpOversizedSymbolTableHandler | back to summary |
|---|---|
public IonBufferConfiguration.
| |
| getNoOpOversizedValueHandler | back to summary |
|---|---|
| public BufferConfiguration. Implements abstract com.
| |
| getOversizedSymbolTableHandler | back to summary |
|---|---|
public IonBufferConfiguration.
| |
| getThrowingOversizedSymbolTableHandler | back to summary |
|---|---|
public IonBufferConfiguration.
| |
| getThrowingOversizedValueHandler | back to summary |
|---|---|
| public BufferConfiguration. Implements abstract com.
| |
| onOversizedSymbolTable | back to summary |
|---|---|
| public IonBufferConfiguration. Sets the handler that will be notified when oversized symbol tables are encountered. If the maximum buffer
size is finite (see
| |
| standard | back to summary |
|---|---|
| public static IonBufferConfiguration. Provides the standard builder with the default initial buffer size, an unbounded maximum buffer size, and an event handler that does nothing.
| |
| throwDueToUnexpectedOversizedValue | back to summary |
|---|---|
| private static void throwDueToUnexpectedOversizedValue() | |
| Modifier and Type | Method and Description |
|---|---|
| public void | onOversizedSymbolTable()
Invoked when the user specifies a finite maximum buffer size and that size is exceeded by symbol table(s) alone. |
| onOversizedSymbolTable | back to summary |
|---|---|
| public void onOversizedSymbolTable() Invoked when the user specifies a finite maximum buffer size and that size is exceeded by symbol table(s) alone. Because symbol tables cannot be truncated without corrupting values that follow in the stream, this condition is not recoverable. | |