|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.book.DataPolice
public final class DataPolice
When we can't convert some source data then the user doesn't really care and just wants it to work, but it would be good to have some way to get the problems fixed, so as a start point we report them through this class.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
private static Level |
level
The level at which to do logging. |
private static Logger |
log
The log stream |
| Constructor Summary | |
|---|---|
private |
DataPolice()
Prevent instantiation |
| Method Summary | |
|---|---|
static void |
report(Book book,
Key key,
Level lev,
String message)
Report a message against the current book and key. |
static void |
report(Book book,
Key key,
String message)
Report a message against the current book and key. |
static void |
setLevel(Level lev)
Set the level at which to show problems. |
static void |
setReportingLevel(Level lev)
Set the current level at which to report problems. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Level level
private static final Logger log
| Constructor Detail |
|---|
private DataPolice()
| Method Detail |
|---|
public static void setReportingLevel(Level lev)
lev - the level to setpublic static void setLevel(Level lev)
lev - the level to set
public static void report(Book book,
Key key,
Level lev,
String message)
lev - the level at which to reportmessage - the police report.
public static void report(Book book,
Key key,
String message)
message - the police report.
|
Copyright ? 2003-2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||