question: public void snapshot ( ) throws IOException { fileCount = 0 ; failedCount = 0 ; final boolean wasLogging = enableLogging ( false ) ; try { Iterator iter = listInputFiles ( sourceDir ) ; while ( iter . hasNext ( ) ) { File file = ( File ) iter . next ( ) ; saveBoxModel ( file , outputDir , width ) ; saveImage ( file , outputDir , width ) ; } } finally { enableLogging ( wasLogging ) ; } }
target:  For all files in the input directory, attempts to render and output a textual box model and a PNG file in the output directory. Does not zip the contents of the output directory. Any single file that fails to render will not halt the process. Low-level IO errors will may, however, interrupt it. Both the file count and the failed count are reset on starting; on finishing those values can be read through their respective accessors in this class.