(byte[] theBytes)
| 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() { |
no test coverage detected