InputStreamReader.cs 562 B

12345678910111213141516171819202122232425
  1. using System.IO;
  2. using System.Text;
  3. namespace SharpCifs.Util.Sharpen
  4. {
  5. public class InputStreamReader : StreamReader
  6. {
  7. //Stream(string path) constructor deleted
  8. //protected InputStreamReader (string file) : base(file)
  9. //{
  10. //}
  11. public InputStreamReader (InputStream s) : base(s.GetWrappedStream ())
  12. {
  13. }
  14. public InputStreamReader (InputStream s, string encoding) : base(s.GetWrappedStream (), Encoding.GetEncoding (encoding))
  15. {
  16. }
  17. public InputStreamReader (InputStream s, Encoding e) : base(s.GetWrappedStream (), e)
  18. {
  19. }
  20. }
  21. }