Package org.apache.lucene.util
Class PrintStreamInfoStream
java.lang.Object
org.apache.lucene.util.InfoStream
org.apache.lucene.util.PrintStreamInfoStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
InfoStream implementation over a
PrintStream
such as System.out
.-
Field Summary
FieldsFields inherited from class org.apache.lucene.util.InfoStream
NO_OUTPUT
-
Constructor Summary
ConstructorsConstructorDescriptionPrintStreamInfoStream
(PrintStream stream) PrintStreamInfoStream
(PrintStream stream, int messageID) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
returns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String)
.boolean
void
prints a messageMethods inherited from class org.apache.lucene.util.InfoStream
clone, getDefault, setDefault
-
Field Details
-
messageID
protected final int messageID -
stream
-
-
Constructor Details
-
PrintStreamInfoStream
-
PrintStreamInfoStream
-
-
Method Details
-
message
Description copied from class:InfoStream
prints a message- Specified by:
message
in classInfoStream
-
isEnabled
Description copied from class:InfoStream
returns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String)
.- Specified by:
isEnabled
in classInfoStream
-
close
- Throws:
IOException
-
isSystemStream
public boolean isSystemStream()
-