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
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.
-
Field Summary
Fields inherited from class org.apache.lucene.util.InfoStream
NO_OUTPUT
-
Constructor Summary
ConstructorDescriptionPrintStreamInfoStream
(PrintStream stream) PrintStreamInfoStream
(PrintStream stream, int messageID) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected String
Returns the current time as string for insertion into log messages.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
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() -
getTimestamp
Returns the current time as string for insertion into log messages.
-