|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.percederberg.mibble.MibLoaderLog
A MIB loader log. This class contains error and warning messages from loading a MIB file and all imports not previously loaded.
| Constructor Summary | |
MibLoaderLog()
Creates a new loader log without entries. |
|
| Method Summary | |
void |
add(LogEntry entry)
Adds a log entry to this log. |
void |
addAll(MibLoaderLog log)
Adds all log entries from another log. |
void |
addError(java.io.File file,
int line,
int column,
java.lang.String message)
Adds an error message to the log. |
void |
addError(FileLocation location,
java.lang.String message)
Adds an error message to the log. |
void |
addInternalError(FileLocation location,
java.lang.String message)
Adds an internal error message to the log. |
void |
addInternalError(java.io.File file,
java.lang.String message)
Adds an internal error message to the log. |
void |
addWarning(java.io.File file,
int line,
int column,
java.lang.String message)
Adds a warning message to the log. |
void |
addWarning(FileLocation location,
java.lang.String message)
Adds a warning message to the log. |
int |
errorCount()
Returns the number of errors in the log. |
void |
printTo(LogPrinter printer)
Prints all log entries to the specified log printer. |
void |
printTo(java.io.PrintStream output)
Prints all log entries to the specified output stream. |
void |
printTo(java.io.PrintWriter output)
Prints all log entries to the specified output stream. |
int |
warningCount()
Returns the number of warnings in the log. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MibLoaderLog()
| Method Detail |
public int errorCount()
public int warningCount()
public void add(LogEntry entry)
entry - the log entry to add
public void addInternalError(FileLocation location,
java.lang.String message)
location - the file locationmessage - the error message
public void addInternalError(java.io.File file,
java.lang.String message)
file - the file affectedmessage - the error message
public void addError(FileLocation location,
java.lang.String message)
location - the file locationmessage - the error message
public void addError(java.io.File file,
int line,
int column,
java.lang.String message)
file - the file affectedline - the line numbercolumn - the column numbermessage - the error message
public void addWarning(FileLocation location,
java.lang.String message)
location - the file locationmessage - the warning message
public void addWarning(java.io.File file,
int line,
int column,
java.lang.String message)
file - the file affectedline - the line numbercolumn - the column numbermessage - the warning messagepublic void addAll(MibLoaderLog log)
log - the MIB loader logpublic void printTo(java.io.PrintStream output)
output - the output stream to usepublic void printTo(java.io.PrintWriter output)
output - the output stream to usepublic void printTo(LogPrinter printer)
printer - the log printer to use
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||