org.codehaus.wadi.core.util
Class GZIPStreamer

java.lang.Object
  extended by org.codehaus.wadi.core.util.GZIPStreamer
All Implemented Interfaces:
Streamer

public class GZIPStreamer
extends java.lang.Object
implements Streamer

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

Version:
$Revision: 2281 $
Author:
Jules Gosnell

Constructor Summary
GZIPStreamer(java.lang.ClassLoader classLoader)
           
 
Method Summary
 java.io.ObjectInput getInputStream(java.io.InputStream is)
           
 java.io.ObjectOutput getOutputStream(java.io.OutputStream os)
           
 java.lang.String getSuffix()
           
 java.lang.String getSuffixWithDot()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZIPStreamer

public GZIPStreamer(java.lang.ClassLoader classLoader)
Method Detail

getInputStream

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

getOutputStream

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

getSuffix

public java.lang.String getSuffix()
Specified by:
getSuffix in interface Streamer

getSuffixWithDot

public java.lang.String getSuffixWithDot()
Specified by:
getSuffixWithDot in interface Streamer


Copyright © 2011. All Rights Reserved.