ozone core API

org.ozoneDB.core.storage.gammaStore
Class GZIPStreamFactory

java.lang.Object
  extended byorg.ozoneDB.core.storage.gammaStore.GZIPStreamFactory
All Implemented Interfaces:
PropertyConfigurable, StreamFactory

public class GZIPStreamFactory
extends java.lang.Object
implements StreamFactory, PropertyConfigurable

Factory that creates streams that read/write to other streams via a GZIP stream.

Version:
$Id: GZIPStreamFactory.java,v 1.1 2004/01/02 09:24:38 leomekenkamp Exp $
Author:
Leo Mekenkamp (mind the anti sp@m)

Field Summary
private  java.lang.String prefix
           
 
Constructor Summary
GZIPStreamFactory(java.util.Properties properties, java.lang.String prefix)
          As prescribed by the PropertyConfigurable interface.
 
Method Summary
 java.io.InputStream createInputStream(java.io.InputStream in)
          Creates an input stream that uses the given InputStream for its input.
 java.io.OutputStream createOutputStream(java.io.OutputStream out)
          Creates an output stream that uses the given OutputStream as its output.
 java.lang.String getPrefix()
           
 java.util.Collection getPropertyInfos()
          Returns a Collection with all the properties this instance supports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

private java.lang.String prefix
Constructor Detail

GZIPStreamFactory

public GZIPStreamFactory(java.util.Properties properties,
                         java.lang.String prefix)
As prescribed by the PropertyConfigurable interface.

Method Detail

createInputStream

public java.io.InputStream createInputStream(java.io.InputStream in)
                                      throws java.io.IOException
Description copied from interface: StreamFactory

Creates an input stream that uses the given InputStream for its input.

Specified by:
createInputStream in interface StreamFactory
Parameters:
in - stream to use for input
Throws:
java.io.IOException

createOutputStream

public java.io.OutputStream createOutputStream(java.io.OutputStream out)
                                        throws java.io.IOException
Description copied from interface: StreamFactory

Creates an output stream that uses the given OutputStream as its output.

Specified by:
createOutputStream in interface StreamFactory
Parameters:
out - stream to use for output
Throws:
java.io.IOException

getPropertyInfos

public java.util.Collection getPropertyInfos()
Description copied from interface: PropertyConfigurable

Returns a Collection with all the properties this instance supports.

Specified by:
getPropertyInfos in interface PropertyConfigurable
Returns:
Collection with PropertyInfo elements

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface PropertyConfigurable

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.