(final Object obj)
| 14 | } |
| 15 | |
| 16 | public static byte[] serialize(final Object obj) throws IOException { |
| 17 | final ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| 18 | serialize(obj, out); |
| 19 | return out.toByteArray(); |
| 20 | } |
| 21 | |
| 22 | public static void serialize(final Object obj, final OutputStream out) throws IOException { |
| 23 | final ObjectOutputStream objOut = new ObjectOutputStream(out); |