public class CreateScriptFile
extends java.lang.Object
| Constructor and Description |
|---|
CreateScriptFile() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String... args)
This method is called when executing this sample application from the
command line.
|
static java.io.LineNumberReader |
openScriptReader(java.lang.String fileName,
java.lang.String compressionAlgorithm,
java.lang.String cipher,
java.lang.String password,
java.lang.String charset)
Open a script reader.
|
static java.io.PrintWriter |
openScriptWriter(java.lang.String fileName,
java.lang.String compressionAlgorithm,
java.lang.String cipher,
java.lang.String password,
java.lang.String charset)
Open a script writer.
|
public static void main(java.lang.String... args)
throws java.lang.Exception
args - the command line parametersjava.lang.Exceptionpublic static java.io.PrintWriter openScriptWriter(java.lang.String fileName,
java.lang.String compressionAlgorithm,
java.lang.String cipher,
java.lang.String password,
java.lang.String charset)
throws java.io.IOException
fileName - the file name (the file will be overwritten)compressionAlgorithm - the compression algorithm (uppercase)cipher - the encryption algorithm or nullpassword - the encryption passwordcharset - the character set (for example UTF-8)java.io.IOExceptionpublic static java.io.LineNumberReader openScriptReader(java.lang.String fileName,
java.lang.String compressionAlgorithm,
java.lang.String cipher,
java.lang.String password,
java.lang.String charset)
throws java.io.IOException
fileName - the file name (the file will be overwritten)compressionAlgorithm - the compression algorithm (uppercase)cipher - the encryption algorithm or nullpassword - the encryption passwordcharset - the character set (for example UTF-8)java.io.IOException