|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.samples.CreateScriptFile
public class CreateScriptFile
This sample application shows how to manually create an encrypted and compressed script file.
Constructor Summary | |
---|---|
CreateScriptFile()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateScriptFile()
Method Detail |
---|
public static void main(java.lang.String... args) throws java.lang.Exception
args
- the command line parameters
java.lang.Exception
public 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.IOException
public 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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |