d591435d8c47f0f7e01143046791f420df4b04e6
[jalviewjs.git] / site / j2s / org / xml / sax / InputSource.js
1 Clazz.declarePackage ("org.xml.sax");\r
2 c$ = Clazz.decorateAsClass (function () {\r
3 this.publicId = null;\r
4 this.systemId = null;\r
5 this.byteStream = null;\r
6 this.encoding = null;\r
7 this.characterStream = null;\r
8 Clazz.instantialize (this, arguments);\r
9 }, org.xml.sax, "InputSource");\r
10 Clazz.makeConstructor (c$, \r
11 function () {\r
12 });\r
13 Clazz.makeConstructor (c$, \r
14 function (systemId) {\r
15 this.setSystemId (systemId);\r
16 }, "~S");\r
17 Clazz.makeConstructor (c$, \r
18 function (byteStream) {\r
19 this.setByteStream (byteStream);\r
20 }, "java.io.InputStream");\r
21 Clazz.makeConstructor (c$, \r
22 function (characterStream) {\r
23 this.setCharacterStream (characterStream);\r
24 }, "java.io.Reader");\r
25 Clazz.defineMethod (c$, "setPublicId", \r
26 function (publicId) {\r
27 this.publicId = publicId;\r
28 }, "~S");\r
29 Clazz.defineMethod (c$, "getPublicId", \r
30 function () {\r
31 return this.publicId;\r
32 });\r
33 Clazz.defineMethod (c$, "setSystemId", \r
34 function (systemId) {\r
35 this.systemId = systemId;\r
36 }, "~S");\r
37 Clazz.defineMethod (c$, "getSystemId", \r
38 function () {\r
39 return this.systemId;\r
40 });\r
41 Clazz.defineMethod (c$, "setByteStream", \r
42 function (byteStream) {\r
43 this.byteStream = byteStream;\r
44 }, "java.io.InputStream");\r
45 Clazz.defineMethod (c$, "getByteStream", \r
46 function () {\r
47 return this.byteStream;\r
48 });\r
49 Clazz.defineMethod (c$, "setEncoding", \r
50 function (encoding) {\r
51 this.encoding = encoding;\r
52 }, "~S");\r
53 Clazz.defineMethod (c$, "getEncoding", \r
54 function () {\r
55 return this.encoding;\r
56 });\r
57 Clazz.defineMethod (c$, "setCharacterStream", \r
58 function (characterStream) {\r
59 this.characterStream = characterStream;\r
60 }, "java.io.Reader");\r
61 Clazz.defineMethod (c$, "getCharacterStream", \r
62 function () {\r
63 return this.characterStream;\r
64 });\r