Package com.amazon.ion.impl.bin
Class _Private_IonManagedBinaryWriterBuilder
- java.lang.Object
-
- com.amazon.ion.impl.bin._Private_IonManagedBinaryWriterBuilder
-
public final class _Private_IonManagedBinaryWriterBuilder extends java.lang.ObjectConstructs instances of binaryIonWriter.This class is thread-safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class_Private_IonManagedBinaryWriterBuilder.AllocatorMode
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BLOCK_SIZE
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_BLOCK_SIZE
public static final int DEFAULT_BLOCK_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
copy
public _Private_IonManagedBinaryWriterBuilder copy()
-
withSymbolsBlockSize
public _Private_IonManagedBinaryWriterBuilder withSymbolsBlockSize(int blockSize)
-
withUserBlockSize
public _Private_IonManagedBinaryWriterBuilder withUserBlockSize(int blockSize)
-
withImports
public _Private_IonManagedBinaryWriterBuilder withImports(SymbolTable... tables)
-
withImports
public _Private_IonManagedBinaryWriterBuilder withImports(java.util.List<SymbolTable> tables)
-
withFlatImports
public _Private_IonManagedBinaryWriterBuilder withFlatImports(SymbolTable... tables)
Adds imports, flattening them to make lookup more efficient. This is particularly useful when a builder instance is long lived.
-
withFlatImports
public _Private_IonManagedBinaryWriterBuilder withFlatImports(java.util.List<SymbolTable> tables)
- See Also:
withFlatImports(SymbolTable...)
-
withPaddedLengthPreallocation
public _Private_IonManagedBinaryWriterBuilder withPaddedLengthPreallocation(int pad)
-
withCatalog
public _Private_IonManagedBinaryWriterBuilder withCatalog(IonCatalog catalog)
-
withStreamCopyOptimization
public _Private_IonManagedBinaryWriterBuilder withStreamCopyOptimization(boolean optimized)
-
withLocalSymbolTableAppendEnabled
public _Private_IonManagedBinaryWriterBuilder withLocalSymbolTableAppendEnabled()
-
withLocalSymbolTableAppendDisabled
public _Private_IonManagedBinaryWriterBuilder withLocalSymbolTableAppendDisabled()
-
withFloatBinary32Enabled
public _Private_IonManagedBinaryWriterBuilder withFloatBinary32Enabled()
-
withFloatBinary32Disabled
public _Private_IonManagedBinaryWriterBuilder withFloatBinary32Disabled()
-
withInitialSymbolTable
public _Private_IonManagedBinaryWriterBuilder withInitialSymbolTable(SymbolTable symbolTable)
-
newWriter
public IonWriter newWriter(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
newLegacyWriter
public IonBinaryWriter 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.
-
-