Search in sources :

Example 1 with com.amazon.ion.impl.bin._Private_IonManagedWriter

use of com.amazon.ion.impl.bin._Private_IonManagedWriter in project ion-java by amzn.

the class IonRawWriterBasicTest method basicRawWriter.

private _Private_IonRawWriter basicRawWriter() {
    IonWriter writer = writer(new ByteArrayOutputStream());
    _Private_IonManagedWriter managedWriter = Facets.assumeFacet(_Private_IonManagedWriter.class, writer);
    return managedWriter.getRawWriter();
}
Also used : com.amazon.ion.impl.bin._Private_IonManagedWriter(com.amazon.ion.impl.bin._Private_IonManagedWriter) ByteArrayOutputStream(java.io.ByteArrayOutputStream)

Aggregations

com.amazon.ion.impl.bin._Private_IonManagedWriter (com.amazon.ion.impl.bin._Private_IonManagedWriter)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1