}
public void writeToPropEqValFile(String filePath,
String[] metadataToWriteOut) throws IOException {
try {
SerializableMetadata sMetadata = new SerializableMetadata("UTF-8",
false);
for (String metadataKey : metadataToWriteOut)
if (this.metadata.getMetadata(metadataKey) != null
&& !this.metadata.getMetadata(metadataKey).equals(""))
sMetadata.addMetadata(metadataKey, this.metadata
.getMetadata(metadataKey));
sMetadata.writeMetadataToXmlStream(new FileOutputStream(filePath));
} catch (Exception e) {
throw new IOException("Failed to write metadata file for "
+ this.pFile + " : " + e.getMessage());
}
}