|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectio.ResourceHandler
public class ResourceHandler
A class for dealing with resources within the jar file or from an external location like the local Filesystem or a Http resource.
Constructor Summary | |
---|---|
ResourceHandler()
|
Method Summary | |
---|---|
byte[] |
loadResourceAsByteArray(java.lang.String resource)
Returns a given resource as a stream. |
java.lang.String |
loadResourceAsStringBuffer(java.lang.String resource)
Converts a given resource into a string. |
boolean |
resourceExists(java.lang.String resource)
Checks if resource exists in jar file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceHandler()
Method Detail |
---|
public boolean resourceExists(java.lang.String resource)
resource
- The resource to check
public java.lang.String loadResourceAsStringBuffer(java.lang.String resource)
resource
- a resource, that is loaded into a stringbuffer
public byte[] loadResourceAsByteArray(java.lang.String resource)
resource
- the resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |