MCPcopy Create free account
hub / github.com/ReadyTalk/avian / readObject

Method readObject

test/Serialize.java:102–116  ·  view source on GitHub ↗
(ObjectInputStream in)

Source from the content-addressed store, hash-verified

100 }
101
102 private void readObject(ObjectInputStream in) throws IOException {
103 try {
104 in.defaultReadObject();
105 } catch (Exception e) {
106 // OpenJDK's defaultReadObject() can throw a ClassNotFoundException
107 throw new IOException(e);
108 }
109 properties = new Properties();
110 int size = in.readInt();
111 for (int i = 0; i < size; i++) try {
112 properties.put(in.readObject(), in.readObject());
113 } catch (ClassNotFoundException e) {
114 throw new IOException(e);
115 }
116 }
117 }
118
119 public static void main(String[] args) throws Exception {

Callers

nothing calls this directly

Calls 4

readIntMethod · 0.65
putMethod · 0.65
readObjectMethod · 0.65
defaultReadObjectMethod · 0.45

Tested by

no test coverage detected