Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / io / FilterInputStream.js
1 Clazz.load (["java.io.InputStream"], "java.io.FilterInputStream", null, function () {
2 c$ = Clazz.decorateAsClass (function () {
3 this.$in = null;
4 Clazz.instantialize (this, arguments);
5 }, java.io, "FilterInputStream", java.io.InputStream);
6 Clazz.makeConstructor (c$, 
7 function ($in) {
8 Clazz.superConstructor (this, java.io.FilterInputStream, []);
9 this.$in = $in;
10 }, "java.io.InputStream");
11 Clazz.defineMethod (c$, "readByteAsInt", 
12 function () {
13 return this.$in.readByteAsInt ();
14 });
15 Clazz.defineMethod (c$, "read", 
16 function (b, off, len) {
17     if (arguments.length == 1) { off = 0; len = b.length; }
18 return this.$in.read (b, off, len);
19 }, "~A,~N,~N");
20 Clazz.defineMethod (c$, "skip", 
21 function (n) {
22 return this.$in.skip (n);
23 }, "~N");
24 Clazz.defineMethod (c$, "available", 
25 function () {
26 return this.$in.available ();
27 });
28 Clazz.defineMethod (c$, "close", 
29 function () {
30 this.$in.close ();
31 });
32 Clazz.defineMethod (c$, "mark", 
33 function (readlimit) {
34 this.$in.mark (readlimit);
35 }, "~N");
36 Clazz.defineMethod (c$, "reset", 
37 function () {
38 this.$in.reset ();
39 });
40 Clazz.defineMethod (c$, "markSupported", 
41 function () {
42 return this.$in.markSupported ();
43 });
44 });