@throws java.nio.charset.unsupportedcharsetexception thrown instead of {@link java.io.unsupportedencodingexception} in version 2.2 if theencoding is not supported.
@throws ioexception if the encoding is invalid
@return an input stream
@param encoding the encoding to use, null means platform default