Public Methods | |
| ZipTool (int compressionLevel) throws IOException | |
| InputStream | getInputStream () |
| void | close () throws IOException |
| void | addFile (InputStream fis1, String path) throws IOException |
Public Attributes | |
| Logger | logger = Logger.getLogger("net.threebit.utils.sosc") |
Private Attributes | |
| ZipOutputStream | zout |
| CRC32 | crc = new CRC32() |
| byte[] | buffer = new byte[250 * 1024] |
| PipedOutputStream | pipedOutputStream = new PipedOutputStream() |
| PipedInputStream | pipedInputStream = null |
| int | compressionLevel = Deflater.NO_COMPRESSION |
Definition at line 38 of file ZipTool.java.
|
|
Creates a new ZipTool.
Definition at line 66 of file ZipTool.java. References sosc::ZipTool::compressionLevel, sosc::ZipTool::pipedInputStream, sosc::ZipTool::pipedOutputStream, and sosc::ZipTool::zout. |
|
||||||||||||
|
Definition at line 90 of file ZipTool.java. References sosc::ZipTool::buffer, sosc::ZipTool::compressionLevel, sosc::ZipTool::crc, sosc::OutputStreamCounter::getSize(), and sosc::ZipTool::zout. |
|
|
Closes all the streams. Definition at line 83 of file ZipTool.java. References sosc::ZipTool::zout. |
|
|
Returns an inputstream that contains the zipped files. Definition at line 76 of file ZipTool.java. References sosc::ZipTool::pipedInputStream. |
|
|
64kB buffer Definition at line 50 of file ZipTool.java. Referenced by sosc::ZipTool::addFile(). |
|
|
Compression level. Definition at line 59 of file ZipTool.java. Referenced by sosc::ZipTool::addFile(), and sosc::ZipTool::ZipTool(). |
|
|
a crc32 calculator Definition at line 47 of file ZipTool.java. Referenced by sosc::ZipTool::addFile(). |
|
|
debuggin. Definition at line 41 of file ZipTool.java. |
|
|
the inputstream that the reading thread will read from. Definition at line 56 of file ZipTool.java. Referenced by sosc::ZipTool::getInputStream(), and sosc::ZipTool::ZipTool(). |
|
|
the outputstream that the zipping thread will write to. Definition at line 53 of file ZipTool.java. Referenced by sosc::ZipTool::ZipTool(). |
|
|
the compressed output stream Definition at line 44 of file ZipTool.java. Referenced by sosc::ZipTool::addFile(), sosc::ZipTool::close(), and sosc::ZipTool::ZipTool(). |
1.2.15