home *** CD-ROM | disk | FTP | other *** search
- package sun.activator;
-
- import java.io.IOException;
- import java.io.OutputStream;
-
- public class DebugOutputStream extends OutputStream {
- private StringBuffer buf = new StringBuffer();
- private ConsoleWindow console;
-
- DebugOutputStream(ConsoleWindow var1) {
- this.console = var1;
- }
-
- public synchronized void flush() {
- if (this.console != null) {
- this.console.append(this.buf.toString());
- }
-
- this.buf = new StringBuffer();
- }
-
- protected void printDebug(String var1) {
- }
-
- public synchronized void write(int var1) throws IOException {
- Character var2 = new Character((char)var1);
- this.buf.append(var2);
- if (var1 == 10 || var1 == 13 || this.buf.length() > 80) {
- this.flush();
- }
-
- }
- }
-