Package ch.bailu.gtk.lib.util
Klasse JavaResource
java.lang.Object
ch.bailu.gtk.lib.util.JavaResource
Util class for location-independent access to program specific resources.
To read files from "resources/" or from the applications jar archive
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungJavaResource
(String path) Creates a JavaResource object holding a relative path to a file in "resources/" or the root directory of the jar archive -
Methodenübersicht
-
Konstruktordetails
-
Methodendetails
-
asString
Read entire text resource into string- Gibt zurück:
- String containing the entire text resource
- Löst aus:
IOException
- If file does not exist
-
asStream
Open the program specific resource file and return it as a readable stream- Gibt zurück:
- InputStream for reading resource file
- Löst aus:
IOException
- If file does not exist
-
asBytes
- Löst aus:
IOException
-