com.g11ntoolkit.detokenizer
Class DetokCSSFile

java.lang.Object
  |
  +--com.g11ntoolkit.detokenizer.DetokCSSFile

public class DetokCSSFile
extends java.lang.Object

Replaces all the protected elements in the specified tokenized JS file with the unprotected version of the strings.

Writes out the specified output file when finished replacing the elements.

Version:
2005/07/22
Author:
Bill Rich, Wilandra Consulting LLC
Copyright © 2005, Wilandra Consulting LLC. All rights reserved.

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.
private static java.util.ResourceBundle mrb
          Message Resource Bundle.
private static java.util.ResourceBundle vrb
          Variables Resource Bundle.
 
Constructor Summary
DetokCSSFile()
           
 
Method Summary
static void detokenize(java.lang.String tokFileName, java.lang.String strFileName, java.lang.String outFileName, java.lang.String contextFileName, java.lang.String encoding, java.util.Locale targetLocale)
          Detokenize of DSP.HTML file, replaces all instances protected elements with their original elements and restores the JavaScripts to their original positions.
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

log

private static java.util.logging.Logger log
The log used for all messages from this class.


mrb

private static java.util.ResourceBundle mrb
Message Resource Bundle.


vrb

private static java.util.ResourceBundle vrb
Variables Resource Bundle.

Constructor Detail

DetokCSSFile

public DetokCSSFile()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws DetokRunError
Allows this tool to be run from the command line.

Sets up the environment then calls the run method to do the work.

Parameters:
args - a String containing the command line parameters.
DetokRunError

detokenize

public static void detokenize(java.lang.String tokFileName,
                              java.lang.String strFileName,
                              java.lang.String outFileName,
                              java.lang.String contextFileName,
                              java.lang.String encoding,
                              java.util.Locale targetLocale)
                       throws DetokRunError
Detokenize of DSP.HTML file, replaces all instances protected elements with their original elements and restores the JavaScripts to their original positions.

Parameters:
tokFileName - a String specifying the input file
strFileName - a String specifying the name of the file that contains extracted JavaScripts to be restored to this file
outFileName - a String specifying the name of the output file
contextFileName - a String containing the name of the file to be used as the context file name
encoding - 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.
Throws:
DetokRunError - on any errors