public String add ( File file , boolean preserveExternalFileName ) { File existingFile = checkFileExists ( file ) ; String result = zipPathFor ( existingFile , preserveExternalFileName ) ; entries . put ( existingFile , result ) ; return result ; }
Add a file to the ZIP .