Package com.amazon.ion.impl.bin
Class _Private_IonManagedBinaryWriterBuilder
java.lang.Object
com.amazon.ion.impl.bin._Private_IonManagedBinaryWriterBuilder
Constructs instances of binary
IonWriter.
This class is thread-safe.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncopy()create(_Private_IonManagedBinaryWriterBuilder.AllocatorMode allocatorMode) Constructs a new builder.newWriter(OutputStream out) withCatalog(IonCatalog catalog) withFlatImports(SymbolTable... tables) Adds imports, flattening them to make lookup more efficient.withFlatImports(List<SymbolTable> tables) withImports(SymbolTable... tables) withImports(List<SymbolTable> tables) withInitialSymbolTable(SymbolTable symbolTable) withPaddedLengthPreallocation(int pad) withStreamCopyOptimization(boolean optimized) withSymbolsBlockSize(int blockSize) withUserBlockSize(int blockSize)
-
Field Details
-
DEFAULT_BLOCK_SIZE
public static final int DEFAULT_BLOCK_SIZE- See Also:
-
-
Method Details
-
copy
-
withSymbolsBlockSize
-
withUserBlockSize
-
withImports
-
withImports
-
withFlatImports
Adds imports, flattening them to make lookup more efficient. This is particularly useful when a builder instance is long lived. -
withFlatImports
- See Also:
-
withPaddedLengthPreallocation
-
withCatalog
-
withStreamCopyOptimization
-
withLocalSymbolTableAppendEnabled
-
withLocalSymbolTableAppendDisabled
-
withFloatBinary32Enabled
-
withFloatBinary32Disabled
-
withInitialSymbolTable
-
newWriter
- Throws:
IOException
-
newLegacyWriter
-
create
public static _Private_IonManagedBinaryWriterBuilder create(_Private_IonManagedBinaryWriterBuilder.AllocatorMode allocatorMode) Constructs a new builder.Builders generally bind to an allocation pool as defined by
_Private_IonManagedBinaryWriterBuilder.AllocatorMode, so applications should reuse them as much as possible.
-