Code example for CharArrayWriter

0
    public synchronized void start(Debug debug1)
    { 
        debug = debug1;
        if(cOut == null)
        { 
            cOut = new CharArrayWriter();
        } 
        debug.setListener(this);
        isRun = true;
        thread = ThreadPool.poolStartThread(this, "c");
    } 
 
    public synchronized void stop() 
    { 
        if(!isRun)
        { 
            return; 
        } 
        isRun = false;
        debug.setListener(null);
        if(thread != null && Thread.currentThread() != thread)