public class InfoLogger extends java.lang.Object implements InfoManager
Constructor and Description |
---|
InfoLogger() |
Modifier and Type | Method and Description |
---|---|
void |
readClassNotFoundException(java.lang.ClassNotFoundException e)
This method records a ClassNotFoundException message.
|
void |
readFileNotFoundException(java.io.FileNotFoundException e)
This method records a FileNotFoundException message.
|
void |
readIOException(java.io.IOException e)
This method records an IOException message.
|
void |
readMessage(java.lang.String m)
This method records a specified message.
|
void |
screenDump()
This method prints the structured message to the screen.
|
java.io.BufferedWriter |
setOutput(java.lang.String path,
boolean overwrite)
This method parses the output path and sets a BufferedWriter for the output
|
public java.io.BufferedWriter setOutput(java.lang.String path, boolean overwrite)
path
- the full path of an output file.overwrite
- whether to overwrite existing file or not.public void screenDump()
public void readMessage(java.lang.String m)
readMessage
in interface InfoManager
m
- the message that is going to be processed.public void readIOException(java.io.IOException e)
readIOException
in interface InfoManager
e
- the IOException message that is going to be processed.public void readFileNotFoundException(java.io.FileNotFoundException e)
readFileNotFoundException
in interface InfoManager
e
- the FileNotFoundException message that is going to be processed.public void readClassNotFoundException(java.lang.ClassNotFoundException e)
readClassNotFoundException
in interface InfoManager
e
- the ClassNotFoundException message that is going to be processed.