(Msg msg, int where)
| 120 | } |
| 121 | |
| 122 | public static void store(Msg msg, int where) { |
| 123 | try { |
| 124 | ByteArrayOutputStream bout = new ByteArrayOutputStream(); |
| 125 | DataOutputStream dout = new DataOutputStream( bout ); |
| 126 | msg.serialize( dout ); |
| 127 | dout.close(); |
| 128 | byte b[]=bout.toByteArray(); |
| 129 | |
| 130 | RecordStore rs=RecordStore.openRecordStore((where==1)?ARCHIVE:TEMPLATES, true); |
| 131 | rs.addRecord(b, 0, b.length); |
| 132 | rs.closeRecordStore(); |
| 133 | } catch (Exception e) { |
| 134 | } |
| 135 | } |
| 136 | } |
no test coverage detected