@DoNotObfuscate
public abstract class UtilityBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
EMPTY_STRING |
static java.lang.String |
OUTPUT_PATH |
Constructor and Description |
---|
UtilityBase() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
appendTrailingSlash(java.lang.String dir) |
protected void |
assertIsDirectory(java.lang.String dir) |
protected abstract void |
checkArguments(java.lang.String[] args) |
protected void |
checkArguments(java.lang.String[] args,
int expectedNumberOfArguments) |
protected java.lang.String |
createSourceBaseName(java.lang.String srcName) |
protected java.io.Writer |
createUTF8Writer(java.lang.String targetName) |
protected boolean |
isDirectory(java.lang.String dir) |
protected abstract void |
parseArguments(java.lang.String[] args) |
static void |
showUsage(java.lang.String usageMessage) |
protected void |
writeToFile(java.lang.String content,
java.io.Writer out) |
public static final java.lang.String OUTPUT_PATH
protected static final java.lang.String EMPTY_STRING
protected abstract void checkArguments(java.lang.String[] args) throws PDFUnitInvalidProgramInvokeException
protected abstract void parseArguments(java.lang.String[] args) throws PDFUnitInvalidProgramInvokeException
protected boolean isDirectory(java.lang.String dir)
protected void writeToFile(java.lang.String content, java.io.Writer out) throws java.io.IOException
java.io.IOException
protected java.io.Writer createUTF8Writer(java.lang.String targetName) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
protected void checkArguments(java.lang.String[] args, int expectedNumberOfArguments) throws PDFUnitInvalidProgramInvokeException
protected java.lang.String createSourceBaseName(java.lang.String srcName)
protected java.lang.String appendTrailingSlash(java.lang.String dir)
protected void assertIsDirectory(java.lang.String dir) throws PDFUnitInvalidProgramInvokeException
public static void showUsage(java.lang.String usageMessage)
Copyright (C) PDFUnit.com. See here for license.