jellyfin/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/InputStreamReader.cs

26 lines
562 B
C#
Raw Normal View History

2017-04-02 00:36:06 +00:00
using System.IO;
using System.Text;
namespace SharpCifs.Util.Sharpen
{
public class InputStreamReader : StreamReader
{
//Stream(string path) constructor deleted
//protected InputStreamReader (string file) : base(file)
//{
//}
public InputStreamReader (InputStream s) : base(s.GetWrappedStream ())
{
}
public InputStreamReader (InputStream s, string encoding) : base(s.GetWrappedStream (), Encoding.GetEncoding (encoding))
{
}
public InputStreamReader (InputStream s, Encoding e) : base(s.GetWrappedStream (), e)
{
}
}
}