public final class Report extends Object
Constructor and Description |
---|
Report() |
Modifier and Type | Method and Description |
---|---|
void |
append(Report report)
Appends all entries in
report to this report. |
void |
clean()
Free resources.
|
void |
close()
Closes writing.
|
Issue.Level |
getExceptionLevel()
Get the current exception level for the report.
|
Iterator<Issue> |
getIssues(int limit)
Returns all issues written in the report.
|
String |
getText()
Returns the report logs and issues, presented as basic multi-line text.
|
void |
log(String message)
Log an information message in the report.
|
void |
logIssue(Issue issue)
Log an issue in the report.
|
void |
setExceptionLevel(Issue.Level exceptionLevel)
Set the level of exception for the report.
|
public void clean()
public void close()
public void log(String message)
message
- the message to write in the reportNullPointerException
- if message
is null
public void append(Report report)
report
to this report.report
- report to read entries frompublic void logIssue(Issue issue)
issue
- the issue to write in the reportNullPointerException
- if issue
is null
public Iterator<Issue> getIssues(int limit)
limit
- maximum number of issuerspublic String getText()
public Issue.Level getExceptionLevel()
Level.CRITICAL
.public void setExceptionLevel(Issue.Level exceptionLevel)
exceptionLevel
, an exception is
thrown. Default is Level.CRITICAL
exceptionLevel
- the exception level where exceptions are to be
thrownCopyright © 2007–2015 Gephi Consortium. All rights reserved.