| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for a resource descriptor that abstracts from the actual type of resource, like file or classpath resource.
An InputStream can be opened for every resource if it exists in physical form, but a File handle can just be returned for resources in the file system. The actual behavior is implementation-specific.
| Method Summary | |
boolean | exists()Return whether this resource actually exists in physical form. |
String | getDescription()Return a description for this resource, to be used for error output when working with the resource. |
File | getFile()Return a File handle for this resource. |
boolean | isOpen()Return whether this resource represents a handle with an open stream. |
| Methods inherited from interface org.springframework.core.io.InputStreamSource |
getInputStream |
| Method Detail |
public boolean exists()
public String getDescription()
Implementations are also encouraged to return this value from their toString method.
public File getFile()
throws java.io.IOException
public boolean isOpen()
Will be false for all usual resource descriptors.
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||