ozone core API

org.ozoneDB.core.storage.gammaStore
Class ZipStreamFactory

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

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

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

Version:
$Id: ZipStreamFactory.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 entryName
           
static PropertyInfo ENTRYNAME
           
private  int level
           
static PropertyInfo LEVEL
           
private  int method
           
static PropertyInfo METHOD
           
private  java.lang.String prefix
           
 
Constructor Summary
ZipStreamFactory(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

LEVEL

public static final PropertyInfo LEVEL

METHOD

public static final PropertyInfo METHOD

ENTRYNAME

public static final PropertyInfo ENTRYNAME

prefix

private java.lang.String prefix

method

private int method

level

private int level

entryName

private java.lang.String entryName
Constructor Detail

ZipStreamFactory

public ZipStreamFactory(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.