returns file object not null for incoming image uri . file object can reference to non-existing file . concode_field_sep File cacheDir concode_elem_sep Bitmap.CompressFormat compressFormat concode_elem_sep int DEFAULT_BUFFER_SIZE concode_elem_sep int compressQuality concode_elem_sep Bitmap.CompressFormat DEFAULT_COMPRESS_FORMAT concode_elem_sep String ERROR_ARG_NULL concode_elem_sep int DEFAULT_COMPRESS_QUALITY concode_elem_sep String TEMP_IMAGE_POSTFIX concode_elem_sep FileNameGenerator fileNameGenerator concode_elem_sep File reserveCacheDir concode_elem_sep int bufferSize concode_field_sep void setBufferSize concode_elem_sep void setCompressQuality concode_elem_sep File get concode_elem_sep boolean save concode_elem_sep boolean save concode_elem_sep void clear concode_elem_sep File getDirectory concode_elem_sep void setCompressFormat concode_elem_sep void close concode_elem_sep boolean remove
File function ( String arg0 ) { String loc0 = fileNameGenerator . generate ( arg0 ) ; File loc1 = cacheDir ; if ( ! cacheDir . exists ( ) && ! cacheDir . mkdirs ( ) ) { if ( reserveCacheDir != null && ( reserveCacheDir . exists ( ) || reserveCacheDir . mkdirs ( ) ) ) { loc1 = reserveCacheDir ; } } return new File ( loc1 , loc0 ) ; }