Throws an exception if the given stream does not support writing/reading/seeking/timeouts.
See Implementation
Throws an exception if the given stream does not support writing/reading/seeking/timeouts.