|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunbbayes.io.log.TextLogManager
public class TextLogManager
Responsible for generating network compilation log
Field Summary | |
---|---|
static int |
DEFAULT_BUFFER_SIZE
|
static String |
DEFAULT_FILENAME
|
static String |
identationString
|
static int |
numColumn
|
protected static ResourceBundle |
resource
Load resource file from this package |
static String |
separator
|
Constructor Summary | |
---|---|
TextLogManager()
|
|
TextLogManager(int bufferSize)
|
Method Summary | |
---|---|
void |
addTitle(String text)
Add the title of the log |
void |
append(String text)
Append the text |
void |
appendIfTrue(boolean debug,
String text)
|
void |
appendln(int identation,
String text)
|
void |
appendln(String text)
Append the text and make new line. |
void |
appendlnIfTrue(boolean debug,
String text)
|
void |
appendlnIfTrue(int identation,
boolean debug,
String text)
|
void |
appendSectionTitle(String text)
Append a section title |
void |
appendSeparator()
Append separator line. |
void |
appendSpecialTitle(String text)
Append a section title |
void |
clear()
Clear the log information. |
Boolean |
getEnabled()
|
String |
getLog()
Get the log how a String. |
Boolean |
isEnabled()
|
void |
reset()
|
void |
setEnabled(boolean enabled)
If this log manager is enabled or not. |
void |
writeToDisk(String fileName,
boolean append)
Write the log in a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_BUFFER_SIZE
public static final String DEFAULT_FILENAME
public static final int numColumn
public static final String separator
public static final String identationString
protected static ResourceBundle resource
Constructor Detail |
---|
public TextLogManager(int bufferSize)
public TextLogManager()
Method Detail |
---|
public void clear()
ILogManager
clear
in interface ILogManager
public void reset()
public void append(String text)
ILogManager
append
in interface ILogManager
public void appendIfTrue(boolean debug, String text)
public void appendln(String text)
ILogManager
appendln
in interface ILogManager
public void appendlnIfTrue(boolean debug, String text)
public void appendln(int identation, String text)
public void appendlnIfTrue(int identation, boolean debug, String text)
public void appendSeparator()
ILogManager
appendSeparator
in interface ILogManager
public String getLog()
ILogManager
getLog
in interface ILogManager
public void writeToDisk(String fileName, boolean append) throws IOException
ILogManager
writeToDisk
in interface ILogManager
IOException
public void addTitle(String text)
ILogManager
addTitle
in interface ILogManager
public void appendSectionTitle(String text)
ILogManager
appendSectionTitle
in interface ILogManager
public void appendSpecialTitle(String text)
ILogManager
appendSpecialTitle
in interface ILogManager
public void setEnabled(boolean enabled)
enabled
- the enabled to set. True to enable. False to disablepublic Boolean getEnabled()
public Boolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |