Gets bytes of datagram and loads into a new one.
(IonDatagram dg)
| 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. |
no test coverage detected