public class MemoryStore extends Object implements ResourceStore
Constructor and Description |
---|
MemoryStore() |
MemoryStore(Map<String,byte[]> store) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String name) |
byte[] |
getBytes(String name) |
String |
getLocation()
A string that uniquely identify the location of that store.
|
InputStream |
getStream(String name) |
URL |
getURL(String name) |
long |
lastModified(String name) |
void |
put(String name,
byte[] data) |
void |
put(String name,
InputStream data) |
void |
remove(String name) |
String |
toString() |
public boolean exists(String name)
exists
in interface ResourceStore
public byte[] getBytes(String name)
getBytes
in interface ResourceStore
public InputStream getStream(String name)
getStream
in interface ResourceStore
public URL getURL(String name)
getURL
in interface ResourceStore
public long lastModified(String name)
lastModified
in interface ResourceStore
public void put(String name, InputStream data) throws IOException
put
in interface ResourceStore
IOException
public void put(String name, byte[] data) throws IOException
put
in interface ResourceStore
IOException
public void remove(String name)
remove
in interface ResourceStore
public String getLocation()
ResourceStore
getLocation
in interface ResourceStore
Copyright © 2013 Nuxeo SA. All Rights Reserved.