MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / reload

Method reload

src/test/java/com/amazon/ion/IonTestCase.java:358–365  ·  view source on GitHub ↗

Gets bytes of datagram and loads into a new one.

(IonDatagram dg)

Source from the content-addressed store, hash-verified

356 * Gets bytes of datagram and loads into a new one.
357 */
358 public IonDatagram reload(IonDatagram dg)
359 {
360 byte[] bytes = dg.getBytes();
361 checkBinaryHeader(bytes);
362
363 IonDatagram dg1 = loader().load(bytes);
364 return dg1;
365 }
366
367 /**
368 * Put value into a datagram, get bytes, and reload to single value.

Calls 11

checkBinaryHeaderMethod · 0.95
loaderMethod · 0.95
systemMethod · 0.95
getBytesMethod · 0.95
bytesToHexMethod · 0.95
assertEqualsMethod · 0.95
sizeMethod · 0.95
getMethod · 0.95
getBytesMethod · 0.65
loadMethod · 0.65
newDatagramMethod · 0.65

Tested by

no test coverage detected