java.lang.Object
org.hsqldb.lib.FileArchiver
Creates a direct, compressed or decompressed copy of a file.
- Since:
- 1.9.0
- Author:
- Blaine Simpson (blaine dot simpson at admc dot com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
archive
(String infilename, String outfilename, FileAccess storage, int compressionType) static void
copyFile
(String infilename, String outfilename, FileAccess storage) static void
unarchive
(String infilename, String outfilename, FileAccess storage, int compressionType)
-
Field Details
-
COMPRESSION_NONE
public static final int COMPRESSION_NONE- See Also:
-
COMPRESSION_ZIP
public static final int COMPRESSION_ZIP- See Also:
-
COMPRESSION_GZIP
public static final int COMPRESSION_GZIP- See Also:
-
-
Constructor Details
-
FileArchiver
public FileArchiver()
-
-
Method Details
-
copyFile
public static void copyFile(String infilename, String outfilename, FileAccess storage) throws IOException - Throws:
IOException
-
archive
public static void archive(String infilename, String outfilename, FileAccess storage, int compressionType) throws IOException - Throws:
IOException
-
unarchive
public static void unarchive(String infilename, String outfilename, FileAccess storage, int compressionType) throws IOException - Throws:
IOException
-