Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

EncodedResource Constructor

Create an encoded resource using the specified encoding.

[Visual Basic]
Public Overloads Sub New( _
   ByVal resource As IResource, _
   ByVal encoding As Encoding, _
   ByVal autoDetectEncoding As Boolean _
)
[C#]
EncodedResource(
   IResource resource,
   Encoding encoding,
   bool autoDetectEncoding
);

Parameters

resource
the resource to read from. Must not be null
encoding
the encoding to use. If null, encoding will be autodetected.
autoDetectEncoding
whether to autoDetect encoding from byte-order marks (StreamReader)

See Also

EncodedResource Class | Spring.Core.IO Namespace | EncodedResource Constructor Overload List