org.nuxeo.ecm.webengine.loader.store
Class FileResourceStore
java.lang.Object
org.nuxeo.ecm.webengine.loader.store.FileResourceStore
- All Implemented Interfaces:
- ResourceStore
public class FileResourceStore
- extends Object
- implements ResourceStore
- Author:
- Bogdan Stefanescu
FileResourceStore
public FileResourceStore(File root)
throws IOException
- Throws:
IOException
getRoot
public File getRoot()
getFile
public final File getFile(String name)
exists
public boolean exists(String name)
- Specified by:
exists
in interface ResourceStore
lastModified
public long lastModified(String name)
- Specified by:
lastModified
in interface ResourceStore
getURL
public URL getURL(String name)
- Specified by:
getURL
in interface ResourceStore
getBytes
public byte[] getBytes(String name)
- Specified by:
getBytes
in interface ResourceStore
getStream
public InputStream getStream(String name)
- Specified by:
getStream
in interface ResourceStore
remove
public void remove(String name)
- Specified by:
remove
in interface ResourceStore
put
public void put(String name,
byte[] data)
throws IOException
- Specified by:
put
in interface ResourceStore
- Throws:
IOException
put
public void put(String name,
InputStream data)
throws IOException
- Specified by:
put
in interface ResourceStore
- Throws:
IOException
getLocation
public String getLocation()
- Description copied from interface:
ResourceStore
- A string that uniquely identify the location of that store.
Two stores are considered equals if their locations are the same.
- Specified by:
getLocation
in interface ResourceStore
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.