![]() |
BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
| CompressDataUtil () | |
| CompressDataUtil (String rootFolder) | |
| byte[] | zip () throws RuntimeException |
| void | unzip (String folder, byte[] bytes) throws RuntimeException |
| byte[] | unzip (InputStream is) throws RuntimeException |
Protected Member Functions | |
| void | listFiles (File node) |
| String | getZipEntry (String file) |
| byte[] | fileToByteArray (String fileName) throws RuntimeException |
Protected Attributes | |
| String | rootFolder |
| Map< String, String > | fileListing |
Data compression utility class.
|
inline |
Default constructor.
|
inline |
Constructor.
| rootFolder | Root directory |
|
inlineprotected |
Read file to byte array.
| fileName | Input file name |
| RuntimeException |
|
inlineprotected |
Get file's path relative to root directory.
| file | Directory content |
|
inlineprotected |
List files recursively.
| node | Directory tree node |
|
inline |
Extract files from ZIP archive and write to output stream.
| is | Compressed input stream |
| RuntimeException |
|
inline |
Extract files from ZIP archive and save to file.
| folder | Root folder |
| is | Compressed input stream |
| RuntimeException |
|
inline |
Create ZIP archive.
| RuntimeException |