question: private File createCaptureFile ( int encodingType , String fileName ) { if ( fileName . isEmpty ( ) ) { fileName = ".Pic" ; } if ( encodingType == JPEG ) { fileName = fileName + ".jpg" ; } else if ( encodingType == PNG ) { fileName = fileName + ".png" ; } else { throw new IllegalArgumentException ( "Invalid Encoding Type: " + encodingType ) ; } return new File ( getTempDirectoryPath ( ) , fileName ) ; }
target:  Create a file in the applications temporary directory based upon the supplied encoding.