I know that I can read files from assets using AssetManager
, like here
AssetManager assetManager = getAssets();
InputStream is = assetManager.open(filename)
but open()
method returns InputStream
. So what I should do when I need to work with FileInputStream not with it superclass. Is there a way to get FileInputStream
instance by InputStream
instance?