org.codehaus.wadi
Interface Streamer

All Known Implementing Classes:
GZIPStreamer, SimpleStreamer

public interface Streamer

Abstract factory. Allows pluggable implementations of various input/output streaming mechanisms to support e.g. compression, encryption etc... I'd like to pool these, but the streams apis don't allow the resetting of the streams that they wrap.

Version:
$Revision: 1160 $
Author:
Jules Gosnell

Method Summary
 ObjectInput getInputStream(InputStream is)
           
 ObjectOutput getOutputStream(OutputStream os)
           
 String getSuffix()
           
 String getSuffixWithDot()
           
 void init(StreamerConfig confige)
           
 

Method Detail

init

public void init(StreamerConfig confige)

getInputStream

public ObjectInput getInputStream(InputStream is)
                           throws IOException
Throws:
IOException

getOutputStream

public ObjectOutput getOutputStream(OutputStream os)
                             throws IOException
Throws:
IOException

getSuffix

public String getSuffix()

getSuffixWithDot

public String getSuffixWithDot()


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