public class ClassResourceStore extends java.lang.Object implements StreamingStore
This store uses the java classpath to find stored resources, which it can get Readers for. These resources might be in a local filesystem, on a WWW site, in jar or zip files, or what-have-you.
Due to the nature of class resources, however, this is a read-only store.
| Constructor and Description |
|---|
ClassResourceStore() |
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
readerFor(java.lang.String storagePath)
Returns an input stream for the given storage path.
|
static ClassResourceStore |
singleton()
Since there's only one classpath for a VM, there's not much need in
having more than one of these, so here's a statically-defined singleton.
|
java.io.Writer |
writerFor(java.lang.String storagePath)
Since this is a read-only store, always throws a StoreException.
|
public static ClassResourceStore singleton()
public java.io.Reader readerFor(java.lang.String storagePath)
readerFor in interface StreamingStorepublic java.io.Writer writerFor(java.lang.String storagePath)
throws StoreException
writerFor in interface StreamingStoreStoreException