|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.g11ntoolkit.tokenizer.FileTokenizer
|
+--com.g11ntoolkit.tokenizer.TokListResourceBundle
A subclass of FileTokenizer to tokenize the specified input file as though it were a ListResourceBundle file.
It uses the super class to do common stuff like reading the input file into a string buffer.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See License Agreement.
| Field Summary | |
private static java.util.logging.Logger |
log
The log used for all messages from this class. |
protected static java.lang.String |
theContextFileName
The context input file name saved for later use. |
protected static java.lang.String |
theInputFileName
The input file name saved for later use. |
protected static java.util.ResourceBundle |
xliffrb
Constants, messages, and variables used by the tools and classes for XLIFF processing. |
| Fields inherited from class com.g11ntoolkit.tokenizer.FileTokenizer |
context, encoding, inFileBuffer, jspVars, mrb, product, productVersion, revContext, targetLocale, tokContext, token, vrb |
| Constructor Summary | |
TokListResourceBundle()
Establishes an instance of the class with no input information. |
|
TokListResourceBundle(java.util.Locale aLocale,
Token aToken)
Establishes an instance of the class and saves all the input information for use in processing the file. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Allows this tool to be run from the command line. |
static StrFile |
tokenize(java.lang.String inFileName,
java.lang.String contextFileName,
java.util.Locale targetLocale)
Tokenizes the buffer and writes the extracted string output file. |
| Methods inherited from class com.g11ntoolkit.tokenizer.FileTokenizer |
cleanConcats, getEncoding, getFileBuffer, getKey, getProductName, getProductVersion, getToken, keys, readFile, readFilePlain, setContext, setEncoding, setProductName, setProductVersion, setupTok, setupTok, tokens |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.logging.Logger log
protected static java.util.ResourceBundle xliffrb
protected static java.lang.String theInputFileName
protected static java.lang.String theContextFileName
| Constructor Detail |
public TokListResourceBundle()
public TokListResourceBundle(java.util.Locale aLocale,
Token aToken)
throws FileTokenizerError
aLocale - a Locale object specifying the target localeaToken - a com.g11ntoolkit.token.Token object specifying a token object to use in generating tokens for the extracted strings
FileTokenizerError - when something goes wrong| Method Detail |
public static void main(java.lang.String[] args)
throws FileTokRunError
Sets up the environment then uses the tokenize method to extract the strings.
args - a String array specifying the command line parameters. The order does not matter except that the arguments that are paired must be paired in order. The arguments are not case sensitive.
FileTokRunError
public static StrFile tokenize(java.lang.String inFileName,
java.lang.String contextFileName,
java.util.Locale targetLocale)
throws FileTokenizerError
inFileName - a String specifying the input file namecontextFileName - a String containing the name of the input file to use for the token id and contexttargetLocale - a Locale specifying the intended target locale
FileTokenizerError - when something goes wrong
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||