jdr/jboss-as-jdr/src/main/java/org/jboss/as/jdr/util/JdrZipFile.java
public void addAsString(InputStream stream, String path) throws Exception {
        StringBuilder name = new StringBuilder("sos_strings/");

        name.append(this.env.getProductName().replace(" ", "_").toLowerCase());
        name.append("-");
        name.append(this.env.getProductVersion().split("\\.")[0]);
        name.append("/");
        name.append(path);

        this.add(stream, name.toString());
    }
public void addAsString(InputStream stream, String path) throws Exception {
        StringBuilder name = new StringBuilder("sos_strings/");

        name.append(this.env.getProductName().replace(" ", "_").toLowerCase());
        name.append("-");
        name.append(this.env.getProductVersion().split("\\.")[0]);
        name.append("/");
        name.append(path);

        this.add(stream, name.toString());
    }
Adds content to the zipfile at path

path is prepended with the directory reserved for generated text files in JDR

@param stream
@param path
@throws Exception