|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.ioc.Resource
public class Resource
An arbitrary resource where you can obtain a Reader
to read data.
Nested Class Summary | |
---|---|
static interface |
Resource.Resolver
A Resource resolver that basically allows it to be read
via getReader() . |
Constructor Summary | |
---|---|
Resource(Reader reader)
|
|
Resource(String path)
|
|
Resource(String path,
String type)
|
|
Resource(String path,
String type,
Reader reader)
|
Method Summary | |
---|---|
File |
getFile()
Gets the file if any. |
String |
getPath()
Gets the path. |
Reader |
getReader()
Gets the reader |
org.mortbay.util.ajax.JSON.ReaderSource |
getSource()
Gets the reader source that can be used for parsing json. |
String |
getType()
Gets the type. |
boolean |
isResolved()
Checks if this resource is already resolved. |
void |
resolve(Reader reader)
Resolves the resource via setting the reader . |
void |
resolve(Reader reader,
String type)
Resolves the resource via setting the reader and type . |
void |
resolve(Reader reader,
String type,
File file)
Resolves the resource via setting the reader , type and file . |
void |
setPath(String path)
Sets the path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Resource(String path)
public Resource(String path, String type)
public Resource(String path, String type, Reader reader)
public Resource(Reader reader)
Method Detail |
---|
public String getPath()
public void setPath(String path)
public String getType()
public Reader getReader()
public org.mortbay.util.ajax.JSON.ReaderSource getSource()
public File getFile()
public void resolve(Reader reader)
reader
.
public void resolve(Reader reader, String type)
reader
and type
.
public void resolve(Reader reader, String type, File file)
reader
, type
and file
.
public boolean isResolved()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |