In the event that you would rather not store data permanently, but instead cache data within storage, make use of cacheDir to open a file that represents a directory (within internal storage) where your application should save temporary cache files.
cacheDir returns a File. As such, you may make use of all methods put at your disposal by the File class, such as the outputStream(), which returns a FileOutputStream.