public void replace(String target, String to) {
		// System.out.println("replacing file:" + path);
		BufferedReader reader = null;
		StringBuilder content = new StringBuilder();
		try {
			reader = new BufferedReader(new InputStreamReader(
					new FileInputStream(path), "utf-8"));
			int lineNum = 0;
			String line;
			boolean find = false;
			while ((line = IOUtils.readLine(reader)) != null) {
				lineNum++;
				String result = replaceLine(line, target, to, 0);
				if (!result.equals(line)) {
					if (!find) {
						System.out.println(new File(path).getName());
						find = true;
					}
					System.out.println(" -> line:" + lineNum);
				}
				content.append(result);
			}
		} catch (IOException e) {
			//
		} finally {
			try {
				reader.close();
			} catch (IOException ex) {
				//
			}
		}

		BufferedWriter writer = null;
		try {
			writer = new BufferedWriter(new OutputStreamWriter(
					new FileOutputStream(path), "utf-8"));
			writer.write(content.toString());
		} catch (IOException e) {
			//
		} finally {
			try {
				writer.close();
			} catch (IOException ex) {
				//
			}
		}

	}