Code example for SAXParseException

Methods: getColumnNumber, getLineNumber, getPublicId, getSystemId

0
			SAXParser parser = createParser();
			parser.parse(inputStream, new OsmHandler(mapData));
			mapData.compileData();
 
		} catch (SAXParseException e) {
			throw new OsmRuntimeException( 
					"Unable to parse input stream" 
					+ ".  publicId=(" + e.getPublicId()
					+ "), systemId=(" + e.getSystemId()
					+ "), lineNumber=" + e.getLineNumber()
					+ ", columnNumber=" + e.getColumnNumber() + ".",
					e);
		} catch (SAXException e) {
			throw new OsmRuntimeException("Unable to parse XML.", e);
		} catch (IOException e) {
			throw new OsmRuntimeException("Unable to read XML input stream.", e);
		} finally { 
			if (inputStream != null) {
				try { 
					inputStream.close();
				} catch (IOException e) {