Esempio n. 1
0
 protected internal virtual void Read(DataInputStream file)
 {
     try
     {
         ReadTags(file);
         int len1 = file.ReadInt();
         for (int i = 0; i < len1; i++)
         {
             int          iO = file.ReadInt();
             CountWrapper tC = new CountWrapper();
             tC.Read(file);
             this.partTakingVerbs[iO] = tC;
         }
     }
     catch (IOException e)
     {
         Sharpen.Runtime.PrintStackTrace(e);
     }
 }
Esempio n. 2
0
 protected internal virtual void Read(string filename)
 {
     try
     {
         DataInputStream rf = IOUtils.GetDataInputStream(filename);
         Read(rf, filename);
         int len1 = rf.ReadInt();
         for (int i = 0; i < len1; i++)
         {
             int          iO = rf.ReadInt();
             CountWrapper tC = new CountWrapper();
             tC.Read(rf);
             this.partTakingVerbs[iO] = tC;
         }
         rf.Close();
     }
     catch (IOException e)
     {
         Sharpen.Runtime.PrintStackTrace(e);
     }
 }