MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / newSystem

Method newSystem

src/test/java/com/amazon/ion/IonTestCase.java:302–311  ·  view source on GitHub ↗

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 #myStreamCopyOptimized.

(IonCatalog catalog)

Source from the content-addressed store, hash-verified

300 * injected {@link #myStreamCopyOptimized}.
301 */
302 protected _Private_IonSystem newSystem(IonCatalog catalog)
303 {
304 IonSystemBuilder b = IonSystemBuilder.standard().withCatalog(catalog);
305
306 b.withStreamCopyOptimized(myStreamCopyOptimized);
307 b.withReaderBuilder(getStreamingMode().getReaderBuilder());
308
309 IonSystem system = b.build();
310 return (_Private_IonSystem) system;
311 }
312
313 protected SimpleCatalog catalog()
314 {

Callers 7

systemMethod · 0.95
testCloneVariantsMethod · 0.95
testCatalogOnLoaderMethod · 0.45
checkClonesMethod · 0.45

Calls 7

standardMethod · 0.95
withReaderBuilderMethod · 0.95
getStreamingModeMethod · 0.95
buildMethod · 0.95
withCatalogMethod · 0.45
getReaderBuilderMethod · 0.45

Tested by

no test coverage detected