Exemplo n.º 1
0
 @Override
 public OpenPath getChild(String name) {
   try {
     for (OpenPath kid : list()) if (kid.getName().equals(name)) return kid;
   } catch (IOException e) {
   }
   return null;
 }
Exemplo n.º 2
0
 @Override
 public OpenPath getChild(String name) {
   try {
     OpenPath[] kids = list();
     for (OpenPath kid : kids) if (kid.getName().equals(name)) return kid;
   } catch (Exception e) {
   }
   return null;
 }
Exemplo n.º 3
0
 @Override
 public OpenPath getChild(String name) {
   try {
     for (OpenPath kid : list()) if (kid.getName().equals(name)) return kid;
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return null;
 }
Exemplo n.º 4
0
 @Override
 protected void finalize() throws Throwable {
   super.finalize();
   if (mLZMA != null)
     try {
       mLZMA.close();
     } catch (Exception e) {
     }
   if (mRAF != null)
     try {
       mRAF.close();
     } catch (Exception e) {
     }
 }
Exemplo n.º 5
0
 @Override
 public String getDetails(boolean countHiddenChildren) {
   String ret = super.getDetails(countHiddenChildren);
   if (!isDirectory()) ret += " (" + OpenPath.formatSize(ze.getCompressedSize()) + ")";
   return ret;
 }