Class TextWriterInfoStream
InfoStream implementation over a TextWriter such as Out.
NOTE: This is analogous to PrintStreamInfoStream in Lucene.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Implements
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public class TextWriterInfoStream : InfoStream, IDisposable
Constructors
TextWriterInfoStream(TextWriter)
InfoStream implementation over a TextWriter such as Out.
NOTE: This is analogous to PrintStreamInfoStream in Lucene.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public TextWriterInfoStream(TextWriter stream)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | stream |
TextWriterInfoStream(TextWriter, int)
InfoStream implementation over a TextWriter such as Out.
NOTE: This is analogous to PrintStreamInfoStream in Lucene.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public TextWriterInfoStream(TextWriter stream, int messageID)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | stream | |
| int | messageID |
Fields
m_messageID
InfoStream implementation over a TextWriter such as Out.
NOTE: This is analogous to PrintStreamInfoStream in Lucene.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly int m_messageID
Field Value
| Type | Description |
|---|---|
| int |
m_stream
InfoStream implementation over a TextWriter such as Out.
NOTE: This is analogous to PrintStreamInfoStream in Lucene.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly TextWriter m_stream
Field Value
| Type | Description |
|---|---|
| TextWriter |
Properties
IsSystemStream
InfoStream implementation over a TextWriter such as Out.
NOTE: This is analogous to PrintStreamInfoStream in Lucene.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public virtual bool IsSystemStream { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Dispose(bool)
Disposes this InfoStream
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
IsEnabled(string)
Returns true if messages are enabled and should be posted to Message(string, string).
Declaration
public override bool IsEnabled(string component)
Parameters
| Type | Name | Description |
|---|---|---|
| string | component |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Message(string, string)
Prints a message
Declaration
public override void Message(string component, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | component | |
| string | message |