com.atlassian.jira.imports.xml
Interface BackupXmlParser

All Known Implementing Classes:
DefaultBackupXmlParser

public interface BackupXmlParser

Simple class that will parse an XML file from disk using SAX and use the provided handler to process the SAX events. This class will also use the APKeys.JIRA_IMPORT_CLEAN_XML flag to determine if it should try to clean the XML of bad characters.

Since:
v3.13

Method Summary
 void parseBackupXml(String fileName, DefaultHandler handler)
          Uses a SAXParser to parse the given file using the given SAX DefaultHandler.
 

Method Detail

parseBackupXml

void parseBackupXml(String fileName,
                    DefaultHandler handler)
                    throws IOException,
                           SAXException
Uses a SAXParser to parse the given file using the given SAX DefaultHandler.

Parameters:
fileName - Path name of the XML Backup file.
handler - A SAX DefaultHandler to handle the SAX events.
Throws:
FileNotFoundException - If the given file does not exist.
IOException - If on IO Exception occurs
SAXException - If any SAX errors occur during processing.


Copyright © 2002-2012 Atlassian. All Rights Reserved.