public class PrintStreamInfoStream extends InfoStream
PrintStream
such as System.out.| Modifier and Type | Field and Description |
|---|---|
protected int |
messageID |
protected PrintStream |
stream |
NO_OUTPUT| Constructor and Description |
|---|
PrintStreamInfoStream(PrintStream stream) |
PrintStreamInfoStream(PrintStream stream,
int messageID) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isEnabled(String component)
returns true if messages are enabled and should be posted to
InfoStream.message(java.lang.String, java.lang.String). |
boolean |
isSystemStream() |
void |
message(String component,
String message)
prints a message
|
getDefault, setDefaultprotected final int messageID
protected final PrintStream stream
public PrintStreamInfoStream(PrintStream stream)
public PrintStreamInfoStream(PrintStream stream, int messageID)
public void message(String component, String message)
InfoStreammessage in class InfoStreampublic boolean isEnabled(String component)
InfoStreamInfoStream.message(java.lang.String, java.lang.String).isEnabled in class InfoStreampublic void close()
throws IOException
IOExceptionpublic boolean isSystemStream()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.