yaml/src/main/java/com/opentext/ia/yaml/configuration/zip/ZipBuilder.java
public void replace(File file, boolean preserveExternalFileName, String text) {
    String path = entries.containsKey(file) ? entries.remove(file) : zipPathFor(file, preserveExternalFileName);
    entries.put(text, path);
  }
public void replace(File file, boolean preserveExternalFileName, String text) {
    String path = entries.containsKey(file) ? entries.remove(file) : zipPathFor(file, preserveExternalFileName);
    entries.put(text, path);
  }
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.
@param file The file for which to replace the content
@param preserveExternalFileName Whether external file names are to be preserved as much as possible, or whether
they should be replaced with unique numbers
@param text The new content to include in the ZIP
Replace the contents of a file with a different text .