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() |
protected String |
getTimestamp()
Returns the current time as string for insertion into log messages.
|
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, setDefault
protected final int messageID
protected final PrintStream stream
public PrintStreamInfoStream(PrintStream stream)
public PrintStreamInfoStream(PrintStream stream, int messageID)
public void message(String component, String message)
InfoStream
message
in class InfoStream
public boolean isEnabled(String component)
InfoStream
InfoStream.message(java.lang.String, java.lang.String)
.isEnabled
in class InfoStream
public void close() throws IOException
IOException
public boolean isSystemStream()
protected String getTimestamp()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.