gzz.mediaserver.storage
Interface Storer

All Known Implementing Classes:
DirStorer, TransientStorer, URLStorer, ZipStorer

public interface Storer


Nested Class Summary
static class Storer.DefaultPropertiesImpl
           
 
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 p)
           
 java.io.InputStream retrieve(java.lang.String key)
           
 void setProperty(java.lang.String name, java.lang.String data)
           
 java.io.OutputStream store(java.lang.String key)
           
 

Method Detail

getKeys

public java.util.Set getKeys()
                      throws java.io.IOException
java.io.IOException

store

public java.io.OutputStream store(java.lang.String key)
                           throws java.io.IOException
java.io.IOException

retrieve

public java.io.InputStream retrieve(java.lang.String key)
                             throws java.io.IOException
java.io.IOException

delete

public void delete(java.lang.String key)
            throws java.io.IOException
java.io.IOException

getFile

public java.io.File getFile(java.lang.String key)
                     throws java.io.IOException
Get a file that contains this key.

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

getProperty

public java.lang.String getProperty(java.lang.String p)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String data)
                 throws java.io.IOException
java.io.IOException