use of com.amazon.ion.impl.IonBinary.Reader in project ion-java by amzn.
the class _Private_Utils method loadStreamBytes.
public static byte[] loadStreamBytes(InputStream in) throws IOException {
BufferManager buffer = new BufferManager(in);
Reader bufReader = buffer.reader();
bufReader.sync();
bufReader.setPosition(0);
byte[] bytes = bufReader.getBytes();
return bytes;
}
Aggregations