Пример #1
0
 protected void read(String filename) {
   try {
     DataInputStream in = IOUtils.getDataInputStream(filename);
     read(in);
     in.close();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
Пример #2
0
  protected 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.put(iO, tC);
      }
      rf.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }