Beispiel #1
0
 // UPGRADE_TODO: Class 'java.io.ObjectInputStream' was converted to 'System.IO.BinaryReader' which
 // has a different behavior.
 // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectInputStream'"
 public void load(System.IO.BinaryReader in_Renamed) throws Exception {
   try {
     int size = in_Renamed.Read();
     for (int i = 0; i < size; i++) {
       // UPGRADE_WARNING: Method 'java.io.ObjectInputStream.readObject' was converted to
       // 'SupportClass.Deserialize' which may throw an exception.
       // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1101'"
       m_groups.add((BoardSetupGroup) SupportClass.deserialize(in_Renamed));
     }
     // UPGRADE_WARNING: Method 'java.io.ObjectInputStream.readObject' was converted to
     // 'SupportClass.Deserialize' which may throw an exception.
     // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1101'"
     m_notes = ((String) SupportClass.deserialize(in_Renamed));
   } catch (Exception e) {
     throw m_engine.createException(e);
   }
 }
Beispiel #2
0
 // +-----------------------------------------------------------------------------------+
 // |								  Serialization										  |
 // +-----------------------------------------------------------------------------------+
 // UPGRADE_TODO: Class 'java.io.ObjectOutputStream' was converted to 'System.IO.BinaryWriter'
 // which has a different behavior.
 // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectOutputStream'"
 public void save(System.IO.BinaryWriter out_Renamed) throws Exception {
   try {
     out_Renamed.Write(m_groups.size());
     for (int i = 0; i < m_groups.size(); i++) {
       // UPGRADE_TODO: Method 'java.io.ObjectOutputStream.writeObject' was converted to
       // 'SupportClass.Serialize' which has a different behavior.
       // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectOutputStreamwriteObject_javalangObject'"
       SupportClass.serialize(out_Renamed, (BoardSetupGroup) m_groups.get(i));
     }
     // UPGRADE_TODO: Method 'java.io.ObjectOutputStream.writeObject' was converted to
     // 'SupportClass.Serialize' which has a different behavior.
     // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectOutputStreamwriteObject_javalangObject'"
     SupportClass.serialize(out_Renamed, m_notes == null ? "" : m_notes);
   } catch (Exception e) {
     throw m_engine.createException(e);
   }
 }