(Metadata meta)
| 265 | } |
| 266 | |
| 267 | private Metadata writeRead(Metadata meta) { |
| 268 | Metadata readed = new Metadata(); |
| 269 | try { |
| 270 | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| 271 | meta.write(new DataOutputStream(out)); |
| 272 | readed.readFields(new DataInputStream(new ByteArrayInputStream(out |
| 273 | .toByteArray()))); |
| 274 | } catch (IOException ioe) { |
| 275 | fail(ioe.toString()); |
| 276 | } |
| 277 | return readed; |
| 278 | } |
| 279 | |
| 280 | } |
no test coverage detected