Package org.apache.lucene.tests.util
Class NullInfoStream
- java.lang.Object
-
- org.apache.lucene.util.InfoStream
-
- org.apache.lucene.tests.util.NullInfoStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class NullInfoStream extends InfoStream
Prints nothing. Just to make sure tests pass w/ and without enabled InfoStream without actually making noise.- WARNING: This API is experimental 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
Constructors Constructor Description NullInfoStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isEnabled(String component)
void
message(String component, String message)
-
Methods inherited from class org.apache.lucene.util.InfoStream
getDefault, setDefault
-
-
-
-
Method Detail
-
message
public void message(String component, String message)
- Specified by:
message
in classInfoStream
-
isEnabled
public boolean isEnabled(String component)
- Specified by:
isEnabled
in classInfoStream
-
close
public void close() throws IOException
- Throws:
IOException
-
-