Ejemplo n.º 1
0
 private int writeInt(String f, long b, long t, int[] its, boolean locked) throws FttpException {
   int wr = 0;
   FileAdapter fa = new FileAdapter(f);
   try {
     wr = locked ? fa.getIntWriter(b, t).writeIntSafety(its) : fa.getIntWriter(b, t).writeInt(its);
   } catch (Exception e) {
     fa.close();
     throw new FttpException(e);
   }
   fa.close();
   return wr;
 }