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
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 TypeMethodDescriptionvoidclose()protected StringReturns the current time as string for insertion into log messages.booleanreturns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String).booleanvoidprints 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:InfoStreamprints a message- Specified by:
messagein classInfoStream
-
isEnabled
Description copied from class:InfoStreamreturns true if messages are enabled and should be posted toInfoStream.message(java.lang.String, java.lang.String).- Specified by:
isEnabledin classInfoStream
-
close
- Throws:
IOException
-
isSystemStream
public boolean isSystemStream() -
getTimestamp
Returns the current time as string for insertion into log messages.
-