|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jdc.sys.SystemResource
Class SystemResource represents a system resource. A system resource
is some data, e.g. images, audio, text, etc., that may be accessed by an application
in a way that is independent of the location of the code. A system resource may
be a file or directory.
SystemResource is commonly used to load application configuration files.
SystemResource attempts to load the system resource file using the
following order of precedence:
SystemResource attempts to load the
system resource file using the following methods:
| Constructor Summary | |
SystemResource()
Constructs a new SystemResource object. |
|
SystemResource(Object object)
Constructs a new SystemResource object for the specified object.. |
|
SystemResource(Object object,
boolean checkFirst)
Constructs a new SystemResource object for the specified object.. |
|
| Method Summary | |
boolean |
exists()
Determines whether the system resource exists. |
File |
getFile()
Returns the system resource file name. |
SystemResource |
getName(String resourceName)
Returns a system resource for the specified system resource name. |
String |
getPath()
Returns the system resource file path name. |
String |
toString()
Returns a String representation of the SystemResource
object. |
URL |
toURL()
Returns a URL representation of the SystemResource
object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SystemResource()
SystemResource object.
public SystemResource(Object object)
SystemResource object for the specified object..
public SystemResource(Object object,
boolean checkFirst)
SystemResource object for the specified object..
| Method Detail |
public boolean exists()
True if the system resource exists.
False if the system resource does not exist.public SystemResource getName(String resourceName)
SystemResource object.public File getFile()
public String getPath()
public String toString()
String representation of the SystemResource
object.
toString in class ObjectString representation of the SystemResource. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.public URL toURL()
URL representation of the SystemResource
object.
URL representation of the SystemResource. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||