Skip to content

Commit f2dc5af

Browse files
committed
adds JSUtil.getFileBytes() and JSUtil.getHtmlApplet()
1 parent fa535e1 commit f2dc5af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sources/net.sf.j2s.java.core/src/swingjs/JSUtil.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import javajs.util.SB;
2222
import javajs.util.ZipTools;
2323
import swingjs.api.Interface;
24+
import swingjs.api.js.HTML5Applet;
2425
import swingjs.api.js.J2SInterface;
2526
import swingjs.api.js.JQuery;
2627
import swingjs.json.JSON;
@@ -650,6 +651,14 @@ public static Color getColorFromName(String c) {
650651
*/
651652
return new Color(rgb[0], rgb[1], rgb[2]);
652653
}
654+
655+
public byte[] getFileBytes(File f) {
656+
return f.秘bytes;
657+
}
658+
659+
public HTML5Applet getApplet() {
660+
return Thread.currentThread().getThreadGroup().秘html5Applet;
661+
}
653662

654663
}
655664

0 commit comments

Comments
 (0)