Java SAX parser progress monitoring
问题 I'm writing a SAX parser in Java to parse a 2.5GB XML file of wikipedia articles. Is there a way to monitor the progress of the parsing in Java? 回答1: Use a javax.swing.ProgressMonitorInputStream. 回答2: Thanks to EJP's suggestion of ProgressMonitorInputStream , in the end I extended FilterInputStream so that ChangeListener can be used to monitor the current read location in term of bytes. With this you have finer control, for example to show multiple progress bars for parallel reading of big