|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.g11ntoolkit.detokenizer.DetokJSPFile
Replaces all the protected elements in the specified tokenized JSP file with the unprotected version of the strings.
Writes out the specified output file when finished replacing the elements.
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 | |
protected static java.util.ResourceBundle |
jspVars
JSP variables Resource Bundle. |
private static java.util.logging.Logger |
log
The log used for all messages from this class. |
private static java.util.ResourceBundle |
mrb
Message Resource Bundle. |
private static java.util.ResourceBundle |
vrb
Variables Resource Bundle. |
| Constructor Summary | |
DetokJSPFile()
|
|
| Method Summary | |
static void |
detokenize(java.lang.String strFileName,
java.lang.String outFileName,
java.lang.String contextFileName,
java.lang.String encoding,
java.util.Locale targetLocale)
Finds and replaces the tokens with their strings. |
static void |
main(java.lang.String[] args)
Allows this tool to be run from the command line. |
| 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
private static java.util.ResourceBundle mrb
private static java.util.ResourceBundle vrb
protected static java.util.ResourceBundle jspVars
| Constructor Detail |
public DetokJSPFile()
| Method Detail |
public static void main(java.lang.String[] args)
throws DetokRunError
Sets up the environment then calls the detokenize method to do the work.
args - a String containing the command line parameters.
DetokRunError
public static void detokenize(java.lang.String strFileName,
java.lang.String outFileName,
java.lang.String contextFileName,
java.lang.String encoding,
java.util.Locale targetLocale)
throws DetokRunError
This method begins from an XLIFF format StrFile.
strFileName - a String containing the name of the input StrFileoutFileName - a String containing the name of the output filecontextFileName - a String containing the name of the file to be used as the context file nameencoding - a String containing the code identifying how the output file should be encoded. This must be a valid encoding code.targetLocale - a Locale for the desired target locale.
DetokRunError - for any error detected during the processing.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||