Class IOUtils
This class emulates the new Java 7 "Try-With-Resources" statement. Remove once Lucene is on Java 7.
@lucene.internal
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class IOUtils : object
Fields
Name | Description |
---|---|
CHARSET_UTF_8 | UTF-8 |
UTF_8 | UTF-8 charset string. Where possible, use |
Methods
Name | Description |
---|---|
Close(IDisposable[]) | Disposes all given |
Close(IEnumerable<IDisposable>) | Disposes all given |
CloseWhileHandlingException(Exception, IDisposable[]) | Disposes all given Sample usage:
|
CloseWhileHandlingException(Exception, IEnumerable<IDisposable>) | Disposes all given |
CloseWhileHandlingException(IDisposable[]) | Disposes all given |
CloseWhileHandlingException(IEnumerable<IDisposable>) | Disposes all given |
Copy(FileInfo, FileInfo) | Copy one file's contents to another file. The target will be overwritten if it exists. The source must exist. |
DeleteFilesIgnoringExceptions(Directory, String[]) | Deletes all given files, suppressing all thrown
Note that the files should not be |
Dispose(IDisposable[]) | Disposes all given |
Dispose(IEnumerable<IDisposable>) | Disposes all given |
DisposeWhileHandlingException(Exception, IDisposable[]) | Disposes all given Sample usage:
|
DisposeWhileHandlingException(Exception, IEnumerable<IDisposable>) | Disposes all given |
DisposeWhileHandlingException(IDisposable[]) | Disposes all given |
DisposeWhileHandlingException(IEnumerable<IDisposable>) | Disposes all given |
GetDecodingReader(FileInfo, Encoding) | Opens a Decoding readers are useful to load configuration files, stopword lists or synonym files to detect character set problems. However, its not recommended to use as a common purpose reader. |
GetDecodingReader(Stream, Encoding) | Wrapping the given Decoding readers are useful to load configuration files, stopword lists or synonym files to detect character set problems. However, its not recommended to use as a common purpose reader. |
GetDecodingReader(Type, String, Encoding) | Opens a Decoding readers are useful to load configuration files, stopword lists or synonym files to detect character set problems. However, its not recommended to use as a common purpose reader. |
ReThrow(Exception) | Simple utilty method that takes a previously caught
|
ReThrowUnchecked(Exception) | Simple utilty method that takes a previously caught
|