예제 #1
0
  @Override
  public long creationTime() {
    String value = null;
    try {
      value = this.getProperty(InMemoInformation.INFO_CREATION_TIME);
    } catch (SharkKBException ex) {
      // cannot happen
    }
    if (value == null) {
      return 0;
    }

    return TimeLong.parse(value);
  }
예제 #2
0
 @Override
 public long lastModified() {
   String value = null;
   try {
     value = this.getProperty(InMemoInformation.INFO_LAST_MODIFED);
   } catch (SharkKBException ex) {
     // cannot happen
   }
   if (value == null) {
     return 0;
   }
   if (value.equals("")) {
     return 0;
   }
   return TimeLong.parse(value);
 }