public abstract static class AbstractParserXmlMojo.XmlFileParser extends AbstractFileParser
acceptKeyPattern| Constructor and Description |
|---|
AbstractParserXmlMojo.XmlFileParser(org.apache.maven.plugin.logging.Log log,
String encoding,
org.nuiton.io.SortedProperties oldParser,
Pattern acceptKeyPattern,
boolean showTouchedFiles,
String rules,
XPath xpath,
DocumentBuilder builder,
Map<String,String> namespaces,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
extract(String i18nString)
Fonction d'extraction de la chaine
|
protected Document |
fileToDocument(File fileToProcess) |
void |
parseFile(File file)
Parse sur un fichier
|
void |
parseLine(File file,
String key)
Parse une partie du fichier
|
File |
prepareFile(File file)
To prepare the file (if any thing to be done before scanning it).
|
destroy, finalize, getEncoding, getLog, getResult, isShowTouchedFiles, isTouched, registerKey, setTouchedpublic AbstractParserXmlMojo.XmlFileParser(org.apache.maven.plugin.logging.Log log,
String encoding,
org.nuiton.io.SortedProperties oldParser,
Pattern acceptKeyPattern,
boolean showTouchedFiles,
String rules,
XPath xpath,
DocumentBuilder builder,
Map<String,String> namespaces,
boolean verbose)
public abstract String extract(String i18nString)
i18nString - le clef i18npublic File prepareFile(File file) throws IOException
prepareFile in class AbstractFileParserfile - the incoming fileIOException - if any IO problem while preparing filepublic void parseFile(File file) throws IOException
FileParserfile - le fichier à parserIOException - if any pbpublic void parseLine(File file, String key) throws IOException
FileParserfile - le fichier à parserkey - la ligne à parserIOException - if any pbprotected Document fileToDocument(File fileToProcess) throws SAXException, IOException
SAXExceptionIOExceptionCopyright © 2007–2014 CodeLutin. All rights reserved.