InputStreamReader.cs 646 B

1234567891011121314151617181920212223242526
  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)
  15. : base(s.GetWrappedStream(), Encoding.GetEncoding(encoding))
  16. {
  17. }
  18. public InputStreamReader(InputStream s, Encoding e) : base(s.GetWrappedStream(), e)
  19. {
  20. }
  21. }
  22. }