Download static/j2s/java/net/Parts.js from patonlab/cascade: direct link, hf CLI and curl.
- Browser
- Download file 776 Bytes
-
https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/java/net/Parts.js
- Command line
-
hf download hf://spaces/patonlab/cascade/static/j2s/java/net/Parts.js
-
curl -L -o Parts.js https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/java/net/Parts.js
776 Bytes
| Clazz.declarePackage ("java.net"); | |
| c$ = Clazz.decorateAsClass (function () { | |
| this.path = null; | |
| this.query = null; | |
| this.ref = null; | |
| Clazz.instantialize (this, arguments); | |
| }, java.net, "Parts"); | |
| Clazz.makeConstructor (c$, | |
| function (file) { | |
| var ind = file.indexOf ('#'); | |
| this.ref = ind < 0 ? null : file.substring (ind + 1); | |
| file = ind < 0 ? file : file.substring (0, ind); | |
| var q = file.lastIndexOf ('?'); | |
| if (q != -1) { | |
| this.query = file.substring (q + 1); | |
| this.path = file.substring (0, q); | |
| } else { | |
| this.path = file; | |
| }}, "~S"); | |
| Clazz.defineMethod (c$, "getPath", | |
| function () { | |
| return this.path; | |
| }); | |
| Clazz.defineMethod (c$, "getQuery", | |
| function () { | |
| return this.query; | |
| }); | |
| Clazz.defineMethod (c$, "getRef", | |
| function () { | |
| return this.ref; | |
| }); | |