MCPcopy Create free account
hub / github.com/apache/tomcat / serialize

Method serialize

java/org/apache/catalina/ha/session/DeltaRequest.java:479–486  ·  view source on GitHub ↗

serialize DeltaRequest @see DeltaRequest#writeExternal(java.io.ObjectOutput) @return serialized delta request @throws IOException IO error serializing

()

Source from the content-addressed store, hash-verified

477 * @throws IOException IO error serializing
478 */
479 protected byte[] serialize() throws IOException {
480 ByteArrayOutputStream bos = new ByteArrayOutputStream();
481 ObjectOutputStream oos = new ObjectOutputStream(bos);
482 writeExternal(oos);
483 oos.flush();
484 oos.close();
485 return bos.toByteArray();
486 }
487
488 private static class AttributeInfo implements Externalizable {
489 private String name = null;

Callers 1

getDiffMethod · 0.95

Calls 4

writeExternalMethod · 0.95
toByteArrayMethod · 0.95
flushMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected