|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.cpdetector.ACmdLineArgsInheritor
info.monitorenter.cpdetector.CodepageProcessor
public class CodepageProcessor
An executable command line interface for batch processing files with cpdetector.
It works on a to
detect the charset encoding of documents and uses that information to sort the given documents in
a taxonomy tree that contains the codepage name at the root folders. Optionally the codepages may
be tried to transform to a specified target codepage.
CodepageDetectorProxy
cpdetector to the classpath.
java -cp <topfolder> cpdetector.CodpageProcessor
java -jar cpdetector.jar
| Field Summary | |
|---|---|
protected File |
collectionRoot
The root folder (directory) under which all files for the collection are found. |
protected CodepageDetectorProxy |
detector
The codepage detection proxy that will be used. |
| Constructor Summary | |
|---|---|
CodepageProcessor()
|
|
| Method Summary | |
|---|---|
protected void |
describe()
|
static void |
main(String[] args)
|
void |
parseArgs(String[] cmdLineArgs)
This method has to be called initially by the code using this instance in order to configure. |
void |
process()
|
protected void |
usage()
Prints out the usage of the command line interface. |
protected void |
verifyFiles()
All three Files are validated if null, existant and the right type (directory vs. |
| Methods inherited from class info.monitorenter.cpdetector.ACmdLineArgsInheritor |
|---|
addCmdLineOption, getParsedCmdLineOption |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File collectionRoot
protected CodepageDetectorProxy detector
| Constructor Detail |
|---|
public CodepageProcessor()
| Method Detail |
|---|
public void parseArgs(String[] cmdLineArgs)
throws Exception
ACmdLineArgsInheritorThis method has to be called initially by the code using this instance in order to configure.
Every subclass has to call super.parseArgs(cmdLineArgs) and then retrieve the options needed from
the returned CmdLineParser!
parseArgs in class ACmdLineArgsInheritorException
public final void process()
throws Exception
Exception
protected void verifyFiles()
throws IllegalArgumentException
Exception - Sth. does not seem to be valid.
IllegalArgumentExceptionprotected void describe()
protected void usage()
usage in class ACmdLineArgsInheritorpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||