Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.loader.store
Interface ResourceStore

All Known Implementing Classes:
FileResourceStore, MemoryStore

public interface ResourceStore

When implementing a resource store you should implement equals and hashCode method. A store is equals to another if the store location is the same.

Author:
Bogdan Stefanescu

Method Summary
 boolean exists(java.lang.String name)
           
 byte[] getBytes(java.lang.String name)
           
 java.lang.String getLocation()
          A string that uniquely identify the location of that store.
 java.io.InputStream getStream(java.lang.String name)
           
 java.net.URL getURL(java.lang.String name)
           
 long lastModified(java.lang.String name)
           
 void put(java.lang.String name, byte[] data)
           
 void put(java.lang.String name, java.io.InputStream data)
           
 void remove(java.lang.String name)
           
 

Method Detail

put

void put(java.lang.String name,
         java.io.InputStream data)
         throws java.io.IOException
Throws:
java.io.IOException

put

void put(java.lang.String name,
         byte[] data)
         throws java.io.IOException
Throws:
java.io.IOException

getStream

java.io.InputStream getStream(java.lang.String name)

getBytes

byte[] getBytes(java.lang.String name)

remove

void remove(java.lang.String name)

exists

boolean exists(java.lang.String name)

lastModified

long lastModified(java.lang.String name)

getURL

java.net.URL getURL(java.lang.String name)

getLocation

java.lang.String getLocation()
A string that uniquely identify the location of that store. Two stores are considered equals if their locations are the same.


Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.