예제 #1
0
 public int copyTo(String toFilePath, long every) {
   int c = 0;
   FileAdapter fa = new FileAdapter(toFilePath);
   fa.createFile();
   byte[] bts = null;
   long begin = 0;
   while ((bts = this.getReader(begin, every).readAll()) != null) {
     c += fa.getWriter().write(bts);
     begin += bts.length;
   }
   fa.close();
   return c;
 }
예제 #2
0
 public void closeExit() {
   PoolExector.close();
   close();
 }