FileInputStream fin = new FileInputStream(args); --------------> ???
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.
Post by:Syed Tabrez
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.
Post by:Campbell Ritchie
Please use the Code button otherwise your code is so difficult to read.
This thread has been viewed 1129 times.
All times above are in ranch (not your local) time.
The current ranch time is Dec 18, 2018 10:26:11.