use of com.amazon.ion.IonWriter in project ion-java by amzn.
the class RoundTripStreamingTest method makeTree.
private IonDatagram makeTree(byte[] buffer) throws IOException {
IonReader in = makeIterator(buffer);
IonDatagram dg = system().newDatagram();
IonWriter tw = system().newTreeWriter(dg);
tw.writeValues(in);
// IonValue v = tw.getContentAsIonValue();
in.close();
return dg;
}
Aggregations