while ((content = original.read())> 0 ) {
copy.write(content);
}
copy.close();
original.close();
Sed hostSed = new Sed();
InputStream sedIs = new ByteArrayInputStream(("substitute=localhost;" + hostName).getBytes("UTF-8"));
hostSed.exec(tmpFile, orgFile, sedIs, false, false, false);
}