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