buf.append(" >\n");
Iterator<String> it = new TreeSet<String>(mManifestEntries.keySet()).iterator();
while (it.hasNext()) {
String key = it.next();
String s = null;
OdfFileEntry fileEntry = mManifestEntries.get(key);
if (fileEntry != null) {
s = fileEntry.getPath();
// only directories with a mimetype (documents) will be written into the manifest.xml
if (s != null && !s.endsWith(SLASH) || !fileEntry.getMediaTypeString().equals(EMPTY_STRING)) {
buf.append(" <manifest:file-entry");
if (s != null) {
buf.append(" manifest:full-path=\"");
buf.append(encodeXMLAttributes(s));
buf.append("\"");
}
s = fileEntry.getMediaTypeString();
buf.append(" manifest:media-type=\"");
buf.append(encodeXMLAttributes(s));
buf.append("\"");
int i = fileEntry.getSize();
if (i > 0) {
buf.append(" manifest:size=\"");
buf.append(i);
buf.append("\"");
}
EncryptionData enc = fileEntry.getEncryptionData();
if (enc != null) {
buf.append(">\n");
buf.append(" <manifest:encryption-data>\n");
Algorithm alg = enc.getAlgorithm();
if (alg != null) {