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;
}
Aggregations