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.
Afficher le fichier Open project: runefs/Marvin

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

IsFSInputStreamOpen() public static méthode

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
Résultat bool

isFSInputStream() public static méthode

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
Résultat bool