org.codehaus.wadi.impl
Class GZIPStreamer

java.lang.Object
  extended byorg.codehaus.wadi.impl.GZIPStreamer
All Implemented Interfaces:
Streamer

public class GZIPStreamer
extends Object
implements Streamer

Pluggable support for [un]GZIP-ing sessions as they are exchanged with peers or long-term storage mechanisms.

Version:
$Revision: 1160 $
Author:
Jules Gosnell

Field Summary
protected  StreamerConfig _config
           
 
Constructor Summary
GZIPStreamer()
           
 
Method Summary
 ObjectInput getInputStream(InputStream is)
           
 ObjectOutput getOutputStream(OutputStream os)
           
 String getSuffix()
           
 String getSuffixWithDot()
           
 void init(StreamerConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_config

protected StreamerConfig _config
Constructor Detail

GZIPStreamer

public GZIPStreamer()
Method Detail

init

public void init(StreamerConfig config)
Specified by:
init in interface Streamer

getInputStream

public ObjectInput getInputStream(InputStream is)
                           throws IOException
Specified by:
getInputStream in interface Streamer
Throws:
IOException

getOutputStream

public ObjectOutput getOutputStream(OutputStream os)
                             throws IOException
Specified by:
getOutputStream in interface Streamer
Throws:
IOException

getSuffix

public String getSuffix()
Specified by:
getSuffix in interface Streamer

getSuffixWithDot

public String getSuffixWithDot()
Specified by:
getSuffixWithDot in interface Streamer


Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.