This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Usually this line tends to handle the lower layer functionality of reading data from a file in a stream of bytes.
However in your specific case seems that after reading the file you need to parse the contents as xml content with a SAX parser which is what you are attempting here
parser.parse(is, this); ----------------------> ???
While parsing the contents in SAX based parsing you encounter callbacks indicating various situations like begin-of-an-xml tag,end-of-xml-tag along with associated data based on which you can do some meaning ful operation.
Hope this helps.
Joined: Dec 22, 2009
Clarifying my statement
"Usually this line tends to handle the lower layer functionality of reading data from a file in a stream of bytes. "
FileInputStream has functionality to accomplish the reading of the file however in your code snippet you are not invoking any of that explicitly rather the parser I think will invoke it for you.