CreateScriptFile
This sample application shows how to manually
create an encrypted and compressed script file.
| Methods |
| static void |
main(String... args)
This method is called when executing this sample application from the
command line.
|
| static void |
main(String... args) throws Exception
This method is called when executing this sample application from the
command line.
Parameters:
args - the command line parameters
|
| static LineNumberReader |
openScriptReader(String fileName, String compressionAlgorithm, String cipher, String password, String charset)
Open a script reader.
|
| static LineNumberReader |
openScriptReader(String fileName, String compressionAlgorithm, String cipher, String password, String charset) throws IOException
Open a script reader.
Parameters:
fileName - the file name (the file will be overwritten)
compressionAlgorithm - the compression algorithm (uppercase)
cipher - the encryption algorithm or null
password - the encryption password
charset - the character set (for example UTF-8)
Returns:
the script reader
|
| static PrintWriter |
openScriptWriter(String fileName, String compressionAlgorithm, String cipher, String password, String charset)
Open a script writer.
|
| static PrintWriter |
openScriptWriter(String fileName, String compressionAlgorithm, String cipher, String password, String charset) throws IOException
Open a script writer.
Parameters:
fileName - the file name (the file will be overwritten)
compressionAlgorithm - the compression algorithm (uppercase)
cipher - the encryption algorithm or null
password - the encryption password
charset - the character set (for example UTF-8)
Returns:
the print writer
|
|