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