Namespace Lucene.Net.Support.IO
Classes
Represents the methods to support some operations over files.
Decorates a instance and
makes no assumptions about whether
has been called on the inner instance or not. Acts like a circuit breaker -
the first caught turns it off and
the rest of the calls are ignored after that point until Reset()
is called.
The primary purpose is for using a instance within a non-disposable
parent object. Since the creator of the ultimately is responsible for
disposing it, our non-disposable object has no way of knowing whether it is safe to use the .
Wraping the within a SafeTextWriterWrapper ensures the
non-disposable object can continue to make calls to the without raising
exceptions (it is presumed that the functionality is optional).
Extension methods that make a effectively into a
binary serializer with no encoding. We simply convert types into bytes
and write them without any concern whether surrogate pairs are respected,
similar to what BinaryFormatter does.
This makes it possible to serialize/deserialize raw character arrays
and get the data back in the same order without any exceptions warning
that the order is not valid and without the need for BinaryFormatter.
Byte order is little-endian (same as and ).