(InputStream i)
| 383 | /// |
| 384 | /// byte array of the content of the stream |
| 385 | public static byte[] readInputStream(InputStream i) throws IOException { |
| 386 | ByteArrayOutputStream b = new ByteArrayOutputStream(); |
| 387 | copy(i, b); |
| 388 | return b.toByteArray(); |
| 389 | } |
| 390 | |
| 391 | /// Registers this externalizable so readObject will be able to load such objects. |
| 392 | /// |