org.wymiwyg.commons.util
Class HashStore

java.lang.Object
  extended by org.wymiwyg.commons.util.HashStore

public class HashStore
extends Object

Author:
reto

Constructor Summary
HashStore(File directory)
           
 
Method Summary
 InputStream getContent(URI uri)
           
static HashStore getDefaultStore()
           
 long getSize(URI uri)
           
 URI storeContent(byte[] content)
           
 void writeContent(URI uri, byte[] content)
          Deprecated. use storeContent instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashStore

public HashStore(File directory)
Method Detail

getContent

public InputStream getContent(URI uri)
                       throws HashStoreException
Throws:
HashStoreException

storeContent

public URI storeContent(byte[] content)
                 throws IOException
Throws:
IOException

writeContent

public void writeContent(URI uri,
                         byte[] content)
                  throws UnsupportedURIType,
                         IOException
Deprecated. use storeContent instead

Parameters:
uri -
content -
Throws:
UnsupportedURIType
IOException

getSize

public long getSize(URI uri)
             throws HashStoreException
Parameters:
object -
Returns:
Throws:
HashStoreException

getDefaultStore

public static HashStore getDefaultStore()


Copyright © 2011. All Rights Reserved.