org.apache.lucene.util
Class PrintStreamInfoStream
java.lang.Object
org.apache.lucene.util.InfoStream
org.apache.lucene.util.PrintStreamInfoStream
- All Implemented Interfaces:
- Closeable, Cloneable
public class PrintStreamInfoStream
- extends InfoStream
InfoStream implementation over a PrintStream
such as System.out
.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
messageID
protected final int messageID
stream
protected final PrintStream stream
PrintStreamInfoStream
public PrintStreamInfoStream(PrintStream stream)
PrintStreamInfoStream
public PrintStreamInfoStream(PrintStream stream,
int messageID)
message
public void message(String component,
String message)
- Description copied from class:
InfoStream
- prints a message
- Specified by:
message
in class InfoStream
isEnabled
public boolean isEnabled(String component)
- Description copied from class:
InfoStream
- returns true if messages are enabled and should be posted to
InfoStream.message(java.lang.String, java.lang.String)
.
- Specified by:
isEnabled
in class InfoStream
close
public void close()
throws IOException
- Throws:
IOException
isSystemStream
public boolean isSystemStream()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.