net.ninthtest
Class CharacterEncodingTranslator

java.lang.Object
  extended by net.ninthtest.CharacterEncodingTranslator

public class CharacterEncodingTranslator
extends Object

CharacterEncodingTranslator is a console and GUI front-end for CharsetTranslator.

GUI usage:

 java[w] -jar cetrans.jar
 

Console usage:

 java -jar cetrans.jar [-xmlcharref] source-filename source-encoding target-filename target-encoding
 

Version:
2.0 $Revision$
Author:
Matthew Zipay (mattz@ninthtest.info)

Constructor Summary
CharacterEncodingTranslator()
          Builds the GUI components for the Character Encoding Translator application.
 
Method Summary
static void main(String[] args)
          Launches Character Encoding Translator as a GUI or console application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterEncodingTranslator

public CharacterEncodingTranslator()
Builds the GUI components for the Character Encoding Translator application.

Method Detail

main

public static void main(String[] args)
                 throws ClassNotFoundException,
                        InstantiationException,
                        IllegalAccessException,
                        UnsupportedLookAndFeelException
Launches Character Encoding Translator as a GUI or console application.

Without command-line arguments, the application runs as a GUI. With command-line arguments, the application runs on the console.

To run on the console, provide the following positional arguments:

"-xmlcharref"
(optional) the literal flag "-xmlcharref" enables XML character reference replacement
source-filename
(required) the path to the input file
source-encoding
(required) the character encoding of the input file
target-filename
(required) the path to the output file
target-encoding
(required) the desired character encoding of the output file

Parameters:
args - the command-line arguments
Throws:
ClassNotFoundException - if the L&F class name is not found on the CLASSPATH
InstantiationException - if the L&F class cannot be instantiated
IllegalAccessException - if the current user does not have permission to access the L&F class
UnsupportedLookAndFeelException - if the L&F class name is not recognized


Copyright © 2010 Matthew Zipay. All Rights Reserved.