MCPcopy Create free account
hub / github.com/bft-smart/library / getObject

Method getObject

src/main/java/bftsmart/demo/ycsb/YCSBMessage.java:132–143  ·  view source on GitHub ↗
(byte[] theBytes)

Source from the content-addressed store, hash-verified

130 }
131
132 public static YCSBMessage getObject(byte[] theBytes) {
133 try {
134 ByteArrayInputStream aBais = new ByteArrayInputStream(theBytes);
135 ObjectInputStream aOis = new ObjectInputStream(aBais);
136 YCSBMessage aMessage = (YCSBMessage) aOis.readObject();
137 aOis.close();
138 aBais.close();
139 return aMessage;
140 } catch (ClassNotFoundException | IOException ex) {
141 return null;
142 }
143 }
144
145 @Override
146 public String toString() {

Callers 5

appExecuteBatchMethod · 0.95
appExecuteUnorderedMethod · 0.95
insertMethod · 0.95
readMethod · 0.95
updateMethod · 0.95

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected