X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fload%2Fxml%2FXmlFileLoader.java;h=8801d00e08f6db1083a7617b9e9f74106f0e0f69;hb=52bf9e8686c916be37a26a0b75340393d4478b05;hp=a607b22a2803b1b0cc09708ab6b6ef0390443681;hpb=5625a1abadb5f2ca5f017fe7dbda1d5141cb637b;p=GpsPrune.git diff --git a/tim/prune/load/xml/XmlFileLoader.java b/tim/prune/load/xml/XmlFileLoader.java index a607b22..8801d00 100644 --- a/tim/prune/load/xml/XmlFileLoader.java +++ b/tim/prune/load/xml/XmlFileLoader.java @@ -39,8 +39,8 @@ public class XmlFileLoader extends DefaultHandler implements Runnable /** - * Open the selected file and show the GUI dialog - * to select load options + * Open the selected file and show the GUI dialog to select load options + * @param inFile File to open */ public void openFile(File inFile) { @@ -94,7 +94,7 @@ public class XmlFileLoader extends DefaultHandler implements Runnable * @see org.xml.sax.ContentHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) */ public void startElement(String uri, String localName, String qName, - Attributes attributes) throws SAXException + Attributes attributes) throws SAXException { // Check for "kml" or "gpx" tags if (_handler == null) @@ -120,7 +120,7 @@ public class XmlFileLoader extends DefaultHandler implements Runnable * @see org.xml.sax.ContentHandler#characters(char[], int, int) */ public void characters(char[] ch, int start, int length) - throws SAXException + throws SAXException { if (_handler != null) { @@ -136,7 +136,7 @@ public class XmlFileLoader extends DefaultHandler implements Runnable * @see org.xml.sax.ContentHandler#endElement(java.lang.String, java.lang.String, java.lang.String) */ public void endElement(String uri, String localName, String qName) - throws SAXException + throws SAXException { if (_handler != null) { @@ -145,4 +145,12 @@ public class XmlFileLoader extends DefaultHandler implements Runnable } super.endElement(uri, localName, qName); } + + /** + * @return The Xml handler used for the parsing + */ + public XmlHandler getHandler() + { + return _handler; + } }