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