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, warningpublic void startElement(String uri, String name, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic 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 © 2015, Oracle and/or its affiliates. All rights reserved.