Java 在特定条件下,如何忽略对csv文件其余部分的解析?

Java 在特定条件下,如何忽略对csv文件其余部分的解析?,java,Java,我正在解析一个csv文件,该文件有点像这样 07-Jan-2016 It is better to lead from behind and to put others in front, especially when you celebrate victory when nice things occur. You take the front line when there is danger. Then people will appreciate your leadership. T

我正在解析一个csv文件,该文件有点像这样

07-Jan-2016
It is better to lead from behind and to put others in front, especially when you celebrate victory when nice things occur. You take the front line when there is danger. Then people will appreciate your leadership.

The main thing that you have to remember on this journey is, just be nice to everyone and always smile.

Some Other third Quote 

and some all content here goes on 
---------
----------
-----------
我的问题是,在这一行“
其他第三个引号”之后,我如何忽略解析文件

我正在读取csv文件,如下所示

 String csvFile = "ip/ASRER070116.csv";
  BufferedReader br = null;
  String line = "";
  try {
   br = new BufferedReader(new FileReader(csvFile));
   while ((line = br.readLine()) != null) {
    System.out.println(line);
   }
  } 

您能告诉我如何解决这个问题吗???

您可以检查每一行的子字符串,并在满足特定条件时中断循环

//inside the  loop    
if (line.contains("some_string"))
  break;

这些问题可能会帮助您:-您可以随时
中断
来停止while循环