1 7 34 35 package com.sun.tools.example.debug.gui; 36 37 import java.io.*; 38 39 public class TypeScriptWriter extends Writer { 40 41 TypeScript script; 42 43 public TypeScriptWriter(TypeScript script) { 44 this.script = script; 45 } 46 47 public void write(char[] cbuf, int off, int len) throws IOException { 48 script.append(String.valueOf(cbuf, off, len)); 49 } 50 51 public void flush() { 52 script.flush(); 53 } 54 55 public void close() { 56 script.flush(); 57 } 58 } 59 60 | Popular Tags |