Пример #1
0
 private void writeObject(final ObjectOutputStream os) throws IOException {
   os.defaultWriteObject();
   os.writeObject(privateCreator);
   os.writeInt(table.size());
   try {
     table.accept(
         new IntHashtable.Visitor() {
           public boolean visit(int key, Object value) {
             try {
               os.writeInt(key);
               os.writeShort(((VR) value).code);
               return true;
             } catch (IOException e) {
               throw new RuntimeException(e);
             }
           }
         });
   } catch (Exception e) {
     throw (IOException) e;
   }
 }