Exemplo n.º 1
0
  /**
   * Returns the time for when file on the content server is no longer valid to download.
   *
   * @return long time in milliseconds or 0 if not applicable or -1 if unknown
   * @throws RcsPersistentStorageException
   * @throws RcsGenericException
   */
  public long getFileExpiration() throws RcsPersistentStorageException, RcsGenericException {
    try {
      return mTransferInf.getFileExpiration();

    } catch (Exception e) {
      RcsPersistentStorageException.assertException(e);
      throw new RcsGenericException(e);
    }
  }