public class ExportFileUpgrader extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
ExportFileUpgrader() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
void |
startElement(String uri,
String name,
String qName,
Attributes atts) |
void |
translateFile(String sourceFilePath,
String targetFilePath)
Call this method to invoke the export file translation.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public void startElement(String uri, String name, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void translateFile(String sourceFilePath, String targetFilePath) throws IOException, SAXException
sourceFilePath
- File to parsetargetFilePath
- File that will be createdSAXException
- If there is an issue parsing the import fileIOException
- If the source is not found or
if there is an issue writing out to the fileCopyright © 2014, Oracle and/or its affiliates. All rights reserved.