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)
| 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 | { |
no test coverage detected