FileInputStream是InputStream的子类,不能直接转换,不过FileInputStream可当做InputStream来使用。 要想使用FileInputStream,可通过File对象或包含文件路径的String来创建。