org.caleigo.toolkit.tunnel
Class ZipPacker

java.lang.Object
  extended byorg.caleigo.toolkit.tunnel.ZipPacker
All Implemented Interfaces:
ITunnelPacker

public class ZipPacker
extends java.lang.Object
implements ITunnelPacker

Version:
1.00
Author:
Mattias Hagstrand

Nested Class Summary
protected  class ZipPacker.ZipPackerInputStream
          Uses a ZipInputStream to read and unzip data from an InputStream.
protected  class ZipPacker.ZipPackerOutputStream
           
 
Constructor Summary
ZipPacker()
           
 
Method Summary
 java.io.InputStream createInputStream(java.io.InputStream in)
          Creates and returns an InputStream that wrapps the provided InputStream.
 java.io.OutputStream createOutputStream(java.io.OutputStream out)
          Creates and returns an OutputStream that wrapps the provided OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipPacker

public ZipPacker()
Method Detail

createInputStream

public java.io.InputStream createInputStream(java.io.InputStream in)
Creates and returns an InputStream that wrapps the provided InputStream. The returned InputStream can then be used to unpack messages. The returned InputStream must be stateless.

Specified by:
createInputStream in interface ITunnelPacker

createOutputStream

public java.io.OutputStream createOutputStream(java.io.OutputStream out)
Creates and returns an OutputStream that wrapps the provided OutputStream. The returned OutputStream can then be used to pack messages. The returned OutputStream must be stateless.

Specified by:
createOutputStream in interface ITunnelPacker


Copyright © 2005 Caleigo. All Rights Reserved.