aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/InputStreamReader.cs
blob: 90b6fde1ae392eac850e2db6d9dcc140583082c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
        {
        }
    }
}