|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.misc.Loader
public class Loader
String loader.
| Method Summary | |
|---|---|
static String |
getString(String u,
String charset)
Returns the contents of the given resource (file path or URL) as a string. |
static String |
resolveRelative(String base,
String u)
Resolves relative paths/URLs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getString(String u,
String charset)
throws IOException
u - file path or URLcharset - character encoding (if null, use system default)
IOException
public static String resolveRelative(String base,
String u)
throws MalformedURLException
base - base path/URLu - path/URL to resolve (relative or absolute)
MalformedURLException
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||