|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwt.js.JS org.xwt.Res
base class for XWT resources
Nested Class Summary | |
static class |
Res.Builtin
the Builtin resource |
static class |
Res.ByteArray
byte arrays |
static class |
Res.Cab
"unwrap" a Cab archive |
static class |
Res.CachedRes
subclass from this if you want a CachedInputStream for each path |
static class |
Res.File
a file |
static class |
Res.Graft
shadow resource which replaces the graft |
static class |
Res.HTTP
HTTP or HTTPS resource |
static class |
Res.ProgressWatcher
shadow resource which replaces the graft |
static class |
Res.Ref
what you get when you reference a subresource |
static class |
Res.Zip
"unwrap" a Zip archive |
Nested classes inherited from class org.xwt.js.JS |
JS.Array, JS.Callable, JS.Context, JS.Exn, JS.GlobalScope, JS.Obj, JS.Scope, JS.TailCall |
Field Summary | |
Template |
t
|
Constructor Summary | |
Res()
|
Method Summary | |
Res |
addExtension(java.lang.String extension)
if the path of this resource does not end with extension, return a new one wit it appended |
java.lang.Object |
callMethod(java.lang.Object method,
JS.Array args,
boolean checkOnly)
|
java.lang.Object |
get(java.lang.Object key)
|
abstract java.lang.String |
getDescriptiveName()
|
java.io.InputStream |
getInputStream()
returns an InputStream containing the Resource's contents |
abstract java.io.InputStream |
getInputStream(java.lang.String path)
|
Res |
getParent()
|
Res |
graft(java.lang.Object newResource)
graft newResource in place of this resource on its parent |
java.lang.Object[] |
keys()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object val)
|
static Res |
stringToRes(java.lang.String url)
|
java.lang.String |
typeName()
|
void |
writeTo(java.io.OutputStream os)
|
Methods inherited from class org.xwt.js.JS |
coerceToBoolean, coerceToNumber, coerceToString, parse, toBoolean, toDouble, toInt, toLong, toNumber, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Template t
Constructor Detail |
public Res()
Method Detail |
public abstract java.lang.String getDescriptiveName()
public java.lang.String typeName()
typeName
in class JS
public Res getParent()
public final java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public abstract java.io.InputStream getInputStream(java.lang.String path) throws java.io.IOException
java.io.IOException
public Res graft(java.lang.Object newResource)
public Res addExtension(java.lang.String extension)
public java.lang.Object[] keys()
keys
in class JS
public java.lang.Object put(java.lang.Object key, java.lang.Object val)
put
in class JS
public java.lang.Object get(java.lang.Object key)
get
in class JS
public static Res stringToRes(java.lang.String url)
public java.lang.Object callMethod(java.lang.Object method, JS.Array args, boolean checkOnly) throws JS.Exn
callMethod
in class JS
JS.Exn
public void writeTo(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |