org.xwt
Class Res.Ref

java.lang.Object
  extended byorg.xwt.js.JS
      extended byorg.xwt.Res
          extended byorg.xwt.Res.Ref
Enclosing class:
Res

public static class Res.Ref
extends Res

what you get when you reference a subresource


Nested Class Summary
 
Nested classes inherited from class org.xwt.Res
Res.Builtin, Res.ByteArray, Res.Cab, Res.CachedRes, Res.File, Res.Graft, Res.HTTP, Res.ProgressWatcher, Res.Ref, Res.Zip
 
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
 
Fields inherited from class org.xwt.Res
t
 
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.String getDescriptiveName()
           
 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
 
Methods inherited from class org.xwt.Res
callMethod, get, getInputStream, keys, put, stringToRes, typeName, writeTo
 
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
 

Method Detail

getDescriptiveName

public java.lang.String getDescriptiveName()
Specified by:
getDescriptiveName in class Res

addExtension

public Res addExtension(java.lang.String extension)
Description copied from class: Res
if the path of this resource does not end with extension, return a new one wit it appended

Overrides:
addExtension in class Res

getInputStream

public java.io.InputStream getInputStream(java.lang.String path)
                                   throws java.io.IOException
Specified by:
getInputStream in class Res
Throws:
java.io.IOException

getParent

public Res getParent()
Overrides:
getParent in class Res

graft

public Res graft(java.lang.Object newResource)
Description copied from class: Res
graft newResource in place of this resource on its parent

Overrides:
graft in class Res