X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fcom%2Fstevesoft%2Fpat%2Fwrap%2FWriterWrap.js;h=9eff73cbe4b42924450e76f362faf6ab74a69844;hp=4c806498ee198d21f1abaa9ae5df8f097ccb95b1;hb=7301a2415adab88038b291fc54caeeb3a5a47a44;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/com/stevesoft/pat/wrap/WriterWrap.js b/bin/com/stevesoft/pat/wrap/WriterWrap.js index 4c80649..9eff73c 100644 --- a/bin/com/stevesoft/pat/wrap/WriterWrap.js +++ b/bin/com/stevesoft/pat/wrap/WriterWrap.js @@ -1,41 +1,41 @@ -Clazz.declarePackage ("com.stevesoft.pat.wrap"); -Clazz.load (["com.stevesoft.pat.BasicStringBufferLike"], "com.stevesoft.pat.wrap.WriterWrap", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.w = null; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat.wrap, "WriterWrap", null, com.stevesoft.pat.BasicStringBufferLike); -Clazz.makeConstructor (c$, -function (w) { -this.w = w; -}, "java.io.Writer"); -Clazz.overrideMethod (c$, "appendC", -function (c) { -try { -this.w.write ((c).charCodeAt (0)); -} catch (ioe) { -if (Clazz.exceptionOf (ioe, java.io.IOException)) { -} else { -throw ioe; -} -} -}, "~S"); -Clazz.overrideMethod (c$, "append", -function (s) { -try { -this.w.write (s); -} catch (ioe) { -if (Clazz.exceptionOf (ioe, java.io.IOException)) { -} else { -throw ioe; -} -} -}, "~S"); -Clazz.overrideMethod (c$, "toStringLike", -function () { -return null; -}); -Clazz.overrideMethod (c$, "unwrap", -function () { -return this.w; -}); -}); +Clazz.declarePackage ("com.stevesoft.pat.wrap"); +Clazz.load (["com.stevesoft.pat.BasicStringBufferLike"], "com.stevesoft.pat.wrap.WriterWrap", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.w = null; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat.wrap, "WriterWrap", null, com.stevesoft.pat.BasicStringBufferLike); +Clazz.makeConstructor (c$, +function (w) { +this.w = w; +}, "java.io.Writer"); +Clazz.overrideMethod (c$, "appendC", +function (c) { +try { +this.w.write ((c).charCodeAt (0)); +} catch (ioe) { +if (Clazz.exceptionOf (ioe, java.io.IOException)) { +} else { +throw ioe; +} +} +}, "~S"); +Clazz.overrideMethod (c$, "append", +function (s) { +try { +this.w.write (s); +} catch (ioe) { +if (Clazz.exceptionOf (ioe, java.io.IOException)) { +} else { +throw ioe; +} +} +}, "~S"); +Clazz.overrideMethod (c$, "toStringLike", +function () { +return null; +}); +Clazz.overrideMethod (c$, "unwrap", +function () { +return this.w; +}); +});