pl.psnc.dl.ege.utils
Interface IOResolver

All Known Implementing Classes:
ZipIOResolver

public interface IOResolver

Interface responsible for compressing and decompressing streamed EGE data.

Each implementation can provide its own compression algorithm.
It is however vital that sender and receiver should base on the same algorithm.

Author:
mariuszs

Method Summary
 void compressData(java.io.File dir, 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 dir)
          Method should decompress stream of input data and save it to selected directory.
 

Method Detail

decompressStream

void decompressStream(java.io.InputStream is,
                      java.io.File dir)
                      throws java.io.IOException
Method should decompress stream of input data and save it to selected directory.

Parameters:
is -
dir -
Throws:
java.io.IOException

compressData

void compressData(java.io.File dir,
                  java.io.OutputStream os)
                  throws java.io.IOException
Method should be responsible for compressing output data received from any of the EGE operations.

Parameters:
os -
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.