C# Class Lucene.Net.Store.TestHelper

this class provides access to package-level features defined in the store package. It is used for testing only.
显示文件 Open project: runefs/Marvin

Public Methods

Method Description
IsFSInputStreamClone ( Lucene.Net.Store.InputStream is_Renamed ) : bool

Returns true if the provided input stream is an FSInputStream and is a clone, that is it does not own its underlying file descriptor.

IsFSInputStreamOpen ( Lucene.Net.Store.InputStream is_Renamed ) : bool

Given an instance of FSDirectory.FSInputStream, this method returns true if the underlying file descriptor is valid, and false otherwise. This can be used to determine if the OS file has been closed. The descriptor becomes invalid when the non-clone instance of the FSInputStream that owns this descriptor is closed. However, the descriptor may possibly become invalid in other ways as well.

isFSInputStream ( Lucene.Net.Store.InputStream is_Renamed ) : bool

Returns true if the instance of the provided input stream is actually an FSInputStream.

Method Details

IsFSInputStreamClone() public static method

Returns true if the provided input stream is an FSInputStream and is a clone, that is it does not own its underlying file descriptor.
public static IsFSInputStreamClone ( Lucene.Net.Store.InputStream is_Renamed ) : bool
is_Renamed Lucene.Net.Store.InputStream
return bool

IsFSInputStreamOpen() public static method

Given an instance of FSDirectory.FSInputStream, this method returns true if the underlying file descriptor is valid, and false otherwise. This can be used to determine if the OS file has been closed. The descriptor becomes invalid when the non-clone instance of the FSInputStream that owns this descriptor is closed. However, the descriptor may possibly become invalid in other ways as well.
public static IsFSInputStreamOpen ( Lucene.Net.Store.InputStream is_Renamed ) : bool
is_Renamed Lucene.Net.Store.InputStream
return bool

isFSInputStream() public static method

Returns true if the instance of the provided input stream is actually an FSInputStream.
public static isFSInputStream ( Lucene.Net.Store.InputStream is_Renamed ) : bool
is_Renamed Lucene.Net.Store.InputStream
return bool