public void replace ( File file , boolean preserveExternalFileName , String text ) { String path = entries . containsKey ( file ) ? entries . remove ( file ) : zipPathFor ( file , preserveExternalFileName ) ; entries . put ( text , path ) ; }
Replace the contents of a file with a different text .