FileDocCategorySizeDatePackage
CaptureLog.javaAPI DocApache Tomcat 6.0.141472Fri Jul 20 04:20:36 BST 2007org.apache.tomcat.util.log

CaptureLog

public class CaptureLog extends Object
Per Thread System.err and System.out log capture data.
author
Glenn L. Nielsen

Fields Summary
private ByteArrayOutputStream
baos
private PrintStream
ps
Constructors Summary
protected CaptureLog()

        baos = new ByteArrayOutputStream();
        ps = new PrintStream(baos);
    
Methods Summary
protected java.lang.StringgetCapture()

        return baos.toString();
    
protected java.io.PrintStreamgetStream()

        return ps;
    
protected voidreset()

        baos.reset();