LineNumberReader lnr = null;
String strContent = null;
while((strContent = lnr.readLine()) != null){
if(strContent.equals("判断信息")){
strContent = "替换值";
}
//写到临时文件或保存在内存中
}