gzz.mediaserver.storage
Class ZipStorer

java.lang.Object
  |
  +--gzz.mediaserver.storage.ZipStorer
All Implemented Interfaces:
Storer

public class ZipStorer
extends java.lang.Object
implements Storer


Nested Class Summary
 
Nested classes inherited from class gzz.mediaserver.storage.Storer
Storer.DefaultPropertiesImpl
 
Field Summary
 java.util.zip.ZipFile zipfile
           
 
Constructor Summary
ZipStorer(java.util.zip.ZipFile zipfile)
           
 
Method Summary
 void delete(java.lang.String key)
           
 java.io.File getFile(java.lang.String key)
          Get a file that contains this key.
 java.util.Set getKeys()
           
 java.lang.String getProperty(java.lang.String s)
           
 java.io.InputStream retrieve(java.lang.String id)
           
 void setProperty(java.lang.String name, java.lang.String data)
           
 java.io.OutputStream store(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

zipfile

public java.util.zip.ZipFile zipfile
Constructor Detail

ZipStorer

public ZipStorer(java.util.zip.ZipFile zipfile)
          throws java.io.IOException
Method Detail

store

public java.io.OutputStream store(java.lang.String key)
                           throws java.io.IOException
Specified by:
store in interface Storer
java.io.IOException

delete

public void delete(java.lang.String key)
            throws java.io.IOException
Specified by:
delete in interface Storer
java.io.IOException

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String data)
                 throws java.io.IOException
Specified by:
setProperty in interface Storer
java.io.IOException

getFile

public java.io.File getFile(java.lang.String key)
                     throws java.io.IOException
Description copied from interface: Storer
Get a file that contains this key.

Specified by:
getFile in interface Storer
Returns:
A file that contains the content of this file, or null if such a file is not available (for example, the datum is transferred from the network and is not available on a file system.
java.io.IOException

retrieve

public java.io.InputStream retrieve(java.lang.String id)
                             throws java.io.IOException
Specified by:
retrieve in interface Storer
java.io.IOException

getProperty

public java.lang.String getProperty(java.lang.String s)
Specified by:
getProperty in interface Storer

getKeys

public java.util.Set getKeys()
                      throws java.io.IOException
Specified by:
getKeys in interface Storer
java.io.IOException