Methods Summary |
---|
public synchronized java.io.InputStream | get(java.lang.String key)Get the object associated to the given unique key.
try
{
return getInputStream( key );
}
catch( final IOException ioe )
{
final String message = "Exception caught while retrieving a stream ";
getLogger().warn( message, ioe );
throw new RuntimeException( message + ": " + ioe );
}
|
protected java.lang.String | getExtensionDecorator()
return ".FileStreamStore";
|
public long | getSize(java.lang.String key)
try {
return getFile(key).length();
}
catch(IOException e) {
return 0;
}
|
public synchronized java.io.OutputStream | put(java.lang.String key)Store the given object and associates it to the given key
try
{
final OutputStream outputStream = getOutputStream( key );
return new BufferedOutputStream( outputStream );
}
catch( final IOException ioe )
{
final String message = "Exception caught while storing a stream ";
getLogger().warn( message, ioe );
throw new RuntimeException( message + ": " + ioe );
}
|