|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Console
A message console for system output warnings. Warnings can have an optional level, which determines whether or not they will be actually shown (depending on the overall level set on the console).
Field Summary | |
---|---|
static int |
DEBUG
Constant to indicate debug-level messages. |
static int |
INFO
Constant to indicate informational-level messages. |
static int |
WARN
Constant to indicate warning-level messages. |
Method Summary | |
---|---|
void |
close()
Closes the console after use. |
int |
getLevel()
Gets the level of the console. |
void |
print(String string)
Print a string to the output, but no newline at the end. |
void |
print(String string,
int level)
Print a string with a given level of granularity. |
void |
println(String string)
Print a message to the output of the console. |
void |
println(String string,
int level)
Print a string with newline, at a given level of granularity. |
void |
setLevel(int level)
Set the overall granularity level of the console. |
Field Detail |
---|
static final int WARN
static final int INFO
static final int DEBUG
Method Detail |
---|
void println(String string) throws IOException
string
- The message to output.
IOException
- On failure.void print(String string) throws IOException
string
- The string to print.
IOException
- On failure.void println(String string, int level) throws IOException
string
- The string.level
- The level (one of the predefined constants).
IOException
- On failure.void print(String string, int level) throws IOException
string
- The stringlevel
- The level (one of the predefined constants).
IOException
- On failure.void close() throws IOException
IOException
- On failure.void setLevel(int level)
level
- The level, one of the predefined constants.
Default is WARN.int getLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |