public abstract class AbstractFileParser extends Object implements FileParser
FileParser with no logic.| Modifier and Type | Field and Description |
|---|---|
protected Pattern |
acceptKeyPattern |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileParser(org.apache.maven.plugin.logging.Log log,
String encoding,
org.nuiton.io.SortedProperties oldParser,
Pattern acceptKeyPattern,
boolean showTouchedFiles) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
clean file parser.
|
protected void |
finalize() |
String |
getEncoding()
Gets encoding used to read and write files.
|
org.apache.maven.plugin.logging.Log |
getLog() |
org.nuiton.io.SortedProperties |
getResult()
TODO As we do not used anylonger old language, we should directly
TODO use only a set of keys, no need to keep i18n value...
|
boolean |
isShowTouchedFiles() |
boolean |
isTouched() |
protected File |
prepareFile(File file)
To prepare the file (if any thing to be done before scanning it).
|
protected void |
registerKey(String key)
Method to invoke when a i18n key was detected .
|
protected void |
setTouched(boolean touched) |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseFile, parseLineprotected final Pattern acceptKeyPattern
public boolean isShowTouchedFiles()
public boolean isTouched()
isTouched in interface FileParsertrue if file was touched (says contains at least one i18n
key)public org.nuiton.io.SortedProperties getResult()
FileParsergetResult in interface FileParserpublic String getEncoding()
FileParsergetEncoding in interface FileParserpublic void destroy()
FileParserdestroy in interface FileParserprotected void finalize()
throws Throwable
public org.apache.maven.plugin.logging.Log getLog()
protected void registerKey(String key)
key - the i18n key to registerprotected void setTouched(boolean touched)
protected File prepareFile(File file) throws IOException
file - the incoming fileIOException - if any IO problem while preparing fileCopyright © 2007–2016 CodeLutin. All rights reserved.