private static void copy(String dirPath, String filePath)
			throws IOException {

		File dir = new File(dirPath);
		if (!dir.exists()) {
			dir.mkdir();
		}

		File sourceFile = new File(filePath);

		File targetFile = new File(dir.getAbsolutePath(), sourceFile.getName());
		//
		// FileWriter f = new FileWriter(targetFile);
		//
		// FileReader f1 =new FileReader(sourceFile);
		FileChannel fcin = new FileInputStream(sourceFile).getChannel();
		FileChannel fcout = new FileOutputStream(new File(dir,
				sourceFile.getName())).getChannel();
		long size = fcin.size();
		fcin.transferTo(0, fcin.size(), fcout);
		fcin.close();
		fcout.close();

	}