com.ptc.wvs.common.cadagent
Class StringBufferCadLogger

java.lang.Object
  extended bycom.ptc.wvs.common.cadagent.StringBufferCadLogger
All Implemented Interfaces:
CadLogger

public class StringBufferCadLogger
extends Object
implements CadLogger


Field Summary
private  boolean addDate
           
private  StringBuffer buf
           
private  String cadTimes
           
private  boolean comp
           
(package private)  boolean forHTML
           
private static SimpleDateFormat formatter
           
private  String lineBreak
           
private  boolean newLine
           
private static String SEP
           
 
Constructor Summary
StringBufferCadLogger()
           
 
Method Summary
 void addStatusLine(String s)
           
 void addStatusMsg(String s)
           
 boolean complete()
           
 StringBuffer getBuffer()
           
 String getCadTimes()
           
 void setAddDate(boolean b)
           
 void setCadTimes(String s)
           
 void setComplete(boolean c)
           
 void setForHTML(boolean b)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEP

private static final String SEP
See Also:
Constant Field Values

formatter

private static SimpleDateFormat formatter

buf

private StringBuffer buf

lineBreak

private String lineBreak

forHTML

boolean forHTML

comp

private boolean comp

addDate

private boolean addDate

newLine

private boolean newLine

cadTimes

private String cadTimes
Constructor Detail

StringBufferCadLogger

public StringBufferCadLogger()
Method Detail

setComplete

public void setComplete(boolean c)

complete

public boolean complete()

setForHTML

public void setForHTML(boolean b)

setAddDate

public void setAddDate(boolean b)

getBuffer

public StringBuffer getBuffer()

toString

public String toString()

addStatusLine

public void addStatusLine(String s)
Specified by:
addStatusLine in interface CadLogger

addStatusMsg

public void addStatusMsg(String s)
Specified by:
addStatusMsg in interface CadLogger

setCadTimes

public void setCadTimes(String s)
Specified by:
setCadTimes in interface CadLogger

getCadTimes

public String getCadTimes()