org.nuiton.i18n.plugin.parser.FileParser Maven / Gradle / Ivy
package org.nuiton.i18n.plugin.parser;
import org.nuiton.io.SortedProperties;
import java.io.File;
import java.io.IOException;
/**
* the contract of a i18n file parser.
*
* @author tchemit
* @since 1.2
*/
public interface FileParser {
/**
* @return {@code true} if file was touched (says contains at least one i18n
* key)
*/
boolean isTouched();
/**
* 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...
*
* @return the results of i18n keys found for the given file
*/
SortedProperties getResult();
/**
* Parse sur un fichier
*
* @param file le fichier à parser
* @throws IOException if any pb
*/
void parseFile(File file) throws IOException;
/**
* Parse une partie du fichier
*
* @param file le fichier à parser
* @param line la ligne à parser
* @throws IOException if any pb
*/
void parseLine(File file, String line) throws IOException;
/** clean file parser. */
void destroy();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy