Esempio n. 1
0
 public UserWriter() {
   try {
     initWriter("Files/User.txt");
   } catch (Exception e) {
     LogUtil.getLogger().error(e);
   }
 }
Esempio n. 2
0
 private void writeUser(User aUser) {
   String date = df.format(aUser.getBirthday().getTime());
   String s =
       ""
           + aUser.getUserId()
           + ";"
           + aUser.getName()
           + ";"
           + aUser.getEmail()
           + ";"
           + aUser.getGender()
           + ";"
           + date
           + ";"
           + aUser.getPassword()
           + ";"
           + aUser.getImage()
           + "\n";
   try {
     writer.write(s);
   } catch (IOException e) {
     LogUtil.getLogger().error(e);
   }
 }