pl.psnc.dl.ege.utils
Class ZipIOResolver

java.lang.Object
  extended by pl.psnc.dl.ege.utils.ZipIOResolver
All Implemented Interfaces:
IOResolver

public class ZipIOResolver
extends java.lang.Object
implements IOResolver

Recovers data from ZIP input/output streams.

Author:
mariuszs

Constructor Summary
ZipIOResolver()
          Constructor : level of compression is 1 by default.
ZipIOResolver(int level)
          Constructor with parameter of level of ZIP compression.
 
Method Summary
 void compressData(java.io.File sourceDir, java.io.OutputStream os)
          Method should be responsible for compressing output data received from any of the EGE operations.
 void decompressStream(java.io.InputStream is, java.io.File destDir)
          Method should decompress stream of input data and save it to selected directory.
 int getLevel()
          Returns level of ZIP compression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipIOResolver

public ZipIOResolver()
Constructor : level of compression is 1 by default.


ZipIOResolver

public ZipIOResolver(int level)
Constructor with parameter of level of ZIP compression.

Parameters:
level -
Method Detail

compressData

public void compressData(java.io.File sourceDir,
                         java.io.OutputStream os)
                  throws java.io.IOException
Description copied from interface: IOResolver
Method should be responsible for compressing output data received from any of the EGE operations.

Specified by:
compressData in interface IOResolver
Throws:
java.io.IOException

decompressStream

public void decompressStream(java.io.InputStream is,
                             java.io.File destDir)
                      throws java.io.IOException
Description copied from interface: IOResolver
Method should decompress stream of input data and save it to selected directory.

Specified by:
decompressStream in interface IOResolver
Throws:
java.io.IOException

getLevel

public int getLevel()
Returns level of ZIP compression.

Returns:


Copyright © 2010. All Rights Reserved.