FileDocCategorySizeDatePackage
CaptureLog.javaAPI DocGlassfish v2 API2848Fri May 04 22:33:16 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();