Search in sources :

Example 1 with Printer

use of com.amazon.ion.util.Printer in project ion-java by amzn.

the class RoundTripTest method setUp.

@Override
@Before
public void setUp() throws Exception {
    super.setUp();
    myPrinter = new Printer();
    myBuilder = new StringBuilder();
}
Also used : Printer(com.amazon.ion.util.Printer) Before(org.junit.Before)

Example 2 with Printer

use of com.amazon.ion.util.Printer in project ion-java by amzn.

the class IonValueLite method toString.

@Override
public String toString() {
    StringBuilder buf = new StringBuilder(1024);
    try {
        Printer p = new Printer();
        p.print(this, buf);
    } catch (IOException e) {
        throw new IonException(e);
    }
    return buf.toString();
}
Also used : IonException(com.amazon.ion.IonException) IOException(java.io.IOException) Printer(com.amazon.ion.util.Printer)

Example 3 with Printer

use of com.amazon.ion.util.Printer in project ion-java by amzn.

the class RoundTripStreamingTest method setUp.

@Override
@Before
public void setUp() throws Exception {
    super.setUp();
    myPrinter = new Printer();
    myBuilder = new StringBuilder();
    myBuffer = _Private_Utils.loadFileBytes(myTestFile);
}
Also used : Printer(com.amazon.ion.util.Printer) Before(org.junit.Before)

Aggregations

Printer (com.amazon.ion.util.Printer)3 Before (org.junit.Before)2 IonException (com.amazon.ion.IonException)1 IOException (java.io.IOException)1