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; }
public void closeExit() { PoolExector.close(); close(); }