org.xwt
Class Res.CachedRes

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

public static class Res.CachedRes
extends Res

subclass from this if you want a CachedInputStream for each path


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
 
Constructor Summary
Res.CachedRes(Res parent, java.lang.String subdir, boolean disk)
           
 
Method Summary
 java.lang.String getDescriptiveName()
           
 java.io.InputStream getInputStream(java.lang.String path)
           
 
Methods inherited from class org.xwt.Res
addExtension, callMethod, get, getInputStream, getParent, graft, 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
 

Constructor Detail

Res.CachedRes

public Res.CachedRes(Res parent,
                     java.lang.String subdir,
                     boolean disk)
Method Detail

getDescriptiveName

public java.lang.String getDescriptiveName()
Specified by:
getDescriptiveName 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