Class AbstractParserXmlMojo.XmlFileParser
java.lang.Object
org.nuiton.i18n.plugin.parser.AbstractFileParser
org.nuiton.i18n.plugin.parser.impl.AbstractParserXmlMojo.XmlFileParser
- All Implemented Interfaces:
FileParser
- Enclosing class:
AbstractParserXmlMojo
-
Field Summary
Fields inherited from class org.nuiton.i18n.plugin.parser.AbstractFileParser
acceptKeyPattern -
Constructor Summary
ConstructorsConstructorDescriptionXmlFileParser(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) -
Method Summary
Modifier and TypeMethodDescriptionabstract StringFonction d'extraction de la chaineprotected DocumentfileToDocument(File fileToProcess) voidParse sur un fichiervoidParse une partie du fichierprepareFile(File file) To prepare the file (if any thing to be done before scanning it).Methods inherited from class org.nuiton.i18n.plugin.parser.AbstractFileParser
destroy, finalize, getEncoding, getLog, getResult, isShowTouchedFiles, isTouched, registerKey, setTouched
-
Constructor Details
-
XmlFileParser
-
-
Method Details
-
extract
Fonction d'extraction de la chaine- Parameters:
i18nString- le clef i18n- Returns:
- la chaine
-
prepareFile
To prepare the file (if any thing to be done before scanning it).- Overrides:
prepareFilein classAbstractFileParser- Parameters:
file- the incoming file- Returns:
- the real file to process
- Throws:
IOException- if any IO problem while preparing file- Since:
- 2.0
-
parseFile
Description copied from interface:FileParserParse sur un fichier- Parameters:
file- le fichier à parser- Throws:
IOException- if any pb
-
parseLine
Description copied from interface:FileParserParse une partie du fichier- Parameters:
file- le fichier à parserkey- la ligne à parser- Throws:
IOException- if any pb
-
fileToDocument
- Throws:
SAXExceptionIOException
-