Search in sources :

Example 1 with IonSystemBuilder

use of com.amazon.ion.system.IonSystemBuilder in project ion-java by amzn.

the class IonTestCase method newSystem.

/**
 * Returns a new IonSystem for each call, using the passed in IonCatalog
 * to build the IonSystem.
 *
 * @param catalog
 *          the catalog to use when building the IonSystem
 *
 * @return
 *          a new IonSystem instance, stream-copy optimized depending on the
 *          injected {@link #myStreamCopyOptimized}.
 */
protected _Private_IonSystem newSystem(IonCatalog catalog) {
    IonSystemBuilder b = IonSystemBuilder.standard().withCatalog(catalog);
    b.withStreamCopyOptimized(myStreamCopyOptimized);
    b.withReaderBuilder(getStreamingMode().getReaderBuilder());
    IonSystem system = b.build();
    return (_Private_IonSystem) system;
}
Also used : com.amazon.ion.impl._Private_IonSystem(com.amazon.ion.impl._Private_IonSystem) com.amazon.ion.impl._Private_IonSystem(com.amazon.ion.impl._Private_IonSystem) IonSystemBuilder(com.amazon.ion.system.IonSystemBuilder)

Aggregations

com.amazon.ion.impl._Private_IonSystem (com.amazon.ion.impl._Private_IonSystem)1 IonSystemBuilder (com.amazon.ion.system.IonSystemBuilder)1