MCPcopy Create free account
hub / github.com/Y4er/ysoserial / serialize

Method serialize

src/main/java/ysoserial/Serializer.java:16–20  ·  view source on GitHub ↗
(final Object obj)

Source from the content-addressed store, hash-verified

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);

Callers 4

callMethod · 0.95
callMethod · 0.95
mainMethod · 0.95
callMethod · 0.95

Calls

no outgoing calls

Tested by 1

callMethod · 0.76