|
Coinjema 1.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.coinjema.context.source.FileContextSource
public class FileContextSource
An implementation of ContextSource based on a simple file structure.
Constructor Summary | |
---|---|
FileContextSource(File file)
|
|
FileContextSource(String filename)
|
Method Summary | |
---|---|
InputStream |
getInputStream(String resource,
String type)
Returns null if no such file found. |
String |
getName()
The relative name of this context. |
Reader |
getReader(String resource,
String type)
Returns null if no such file found. |
Resource |
getResource(String resourceName)
|
Resource |
getResource(String resourceName,
String ext)
A more optimized way to find a specific resource if the caller knows the extension (resource type). |
File |
getRootDirectory()
|
Collection<ContextSource> |
getSubContexts()
Retrieve a collection of direct subcontexts of this context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileContextSource(File file)
public FileContextSource(String filename)
Method Detail |
---|
public Collection<ContextSource> getSubContexts()
ContextSource
getSubContexts
in interface ContextSource
public String getName()
ContextSource
getName
in interface ContextSource
public File getRootDirectory()
public Reader getReader(String resource, String type)
public InputStream getInputStream(String resource, String type)
public Resource getResource(String resourceName, String ext)
ContextSource
getResource
in interface ContextSource
public Resource getResource(String resourceName)
getResource
in interface ContextSource
|
Coinjema 1.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |