rem: var skin = this.custom ? "custom" : this.prototype; for (var i in res.skinpath) { var file = this.getFile(res.skinpath[i]); if (!file.exists()) { continue; }  if (this.cache.source) { return this.cache.source; }  var fis = new java.io.FileInputStream(file); var isr = new java.io.InputStreamReader(fis, "UTF-8"); var reader = new java.io.BufferedReader(isr); var line, source = new java.lang.StringBuffer(); while ((line = reader.readLine()) != null) { source.append(line); source.append("\n"); } /* var source = java.lang.reflect.Array.newInstance(java.lang.Character.TYPE, file.length()); var offset = 0, read; while (offset < source.length) { read = reader.read(source, offset, source.length - offset); offset += read; } */ reader.close(); isr.close(); fis.close();    this.cache.source = source.toString(); return this.cache.source; 
add: var skinFiles = app.getSkinfilesInPath(res.skinpath)[this.prototype]; if (!skinFiles) { res.message = gettext("Unknown prototype {0}", this.prototype); res.redirect(res.handlers.layout.skins.href()); return; 
context: Skin.prototype.getSource = function() {   var skin = this.custom ? "custom" : this.prototype;   for (var i in res.skinpath) {      var file = this.getFile(res.skinpath[i]);      if (!file.exists()) {         continue;      }      if (this.cache.source) {         return this.cache.source;      }         var fis = new java.io.FileInputStream(file);      var isr = new java.io.InputStreamReader(fis, "UTF-8");      var reader = new java.io.BufferedReader(isr);      var line, source = new java.lang.StringBuffer();      while ((line = reader.readLine()) != null) {         source.append(line);         source.append("\n");      }      /*      var source = java.lang.reflect.Array.newInstance(java.lang.Character.TYPE,             file.length());      var offset = 0, read;      while (offset < source.length) {         read = reader.read(source, offset, source.length - offset);         offset += read;      }      */      reader.close();      isr.close();      fis.close();      //this.cache[key] = new java.lang.String(source);      //res.debug(this.cache[key]);      this.cache.source = source.toString();      return this.cache.source;   }   var skins;   if (skins = app.skinfiles[this.prototype]) {      return skins[skin];   }   return null;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/a63f1725b33f0e4c3d3257a6bd38df96a5406745/Skin.js/clean/code/Skin/Skin.js