Warning
This class should not be extended by code outside of this library.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | IonWriterBuilder.
A strategy for altering emission of Ion version markers at the start of an Ion stream. |
| public static enum | IonWriterBuilder.
A strategy for minimizing the output of non-initial Ion version markers. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public abstract IonWriter | build(OutputStream
the stream that will receive Ion data.
Must not be null. out)Builds a new writer based on this builder's configuration properties. |
| public abstract IonWriterBuilder. | Returns: the initial IVM strategy. Null indicates the default for the specific output form.Gets the strategy for emitting Ion version markers at the start of the stream. |
| public abstract IonWriterBuilder. | Returns: the IVM minimizing strategy.Gets the strategy for eliminating Ion version markers mid-stream. |
| IonWriterBuilder | back to summary |
|---|---|
| pack-priv IonWriterBuilder() NOT FOR APPLICATION USE | |
| build | back to summary |
|---|---|
| public abstract IonWriter build(OutputStream out) Builds a new writer based on this builder's configuration properties.
| |
| getInitialIvmHandling | back to summary |
|---|---|
| public abstract IonWriterBuilder. Gets the strategy for emitting Ion version markers at the start of the stream. By default, IVMs are emitted only when explicitly written or when necessary (for example, before data that's not Ion 1.0, or at the start of Ion binary output).
| |
| getIvmMinimizing | back to summary |
|---|---|
| public abstract IonWriterBuilder. Gets the strategy for eliminating Ion version markers mid-stream. By default, IVMs are emitted as received or when necessary.
This strategy does not affect handling of IVMs at the start of the
stream; that's the job of
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final IonWriterBuilder. | ENSURE
Always emits an initial IVM, even when the user hasn't explicitly written one. |
| public static final IonWriterBuilder. | SUPPRESS
Indicates that initial IVMs should be suppressed from the output stream whenever possible, even when they are explicitly written. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IonWriterBuilder. | |
| public static IonWriterBuilder. |
| ENSURE | back to summary |
|---|---|
| public static final IonWriterBuilder. Always emits an initial IVM, even when the user hasn't explicitly written one. If the user does write one, this won't cause an extra to be emitted. | |
| SUPPRESS | back to summary |
|---|---|
| public static final IonWriterBuilder. Indicates that initial IVMs should be suppressed from the output stream whenever possible, even when they are explicitly written. | |
| InitialIvmHandling | back to summary |
|---|---|
| private InitialIvmHandling() | |
| valueOf | back to summary |
|---|---|
| public static IonWriterBuilder. | |
| values | back to summary |
|---|---|
| public static IonWriterBuilder. | |
This strategy does not affect handling of IVMs at the start of a data
stream; that's the job of InitialIvmHandling.
| Modifier and Type | Field and Description |
|---|---|
| public static final IonWriterBuilder. | ADJACENT
Replaces identical, adjacent IVMs with a single IVM. |
| public static final IonWriterBuilder. | DISTANT
Discards IVMs that don't change the Ion version, even when there's other data between them. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IonWriterBuilder. | |
| public static IonWriterBuilder. |
| ADJACENT | back to summary |
|---|---|
| public static final IonWriterBuilder. Replaces identical, adjacent IVMs with a single IVM. | |
| DISTANT | back to summary |
|---|---|
| public static final IonWriterBuilder. Discards IVMs that don't change the Ion version, even when there's other data between them. This includes adjacent IVMs. | |
| IvmMinimizing | back to summary |
|---|---|
| private IvmMinimizing() | |
| valueOf | back to summary |
|---|---|
| public static IonWriterBuilder. | |
| values | back to summary |
|---|---|
| public static IonWriterBuilder. | |