be.re.repo.mod
Interface ZippedDocumentExchanger.Set
- Enclosing class:
- ZippedDocumentExchanger
public static interface ZippedDocumentExchanger.Set
set
void set(InputStream in,
OutputStream out,
Set<Property> newProperties,
Set<Property> oldProperties,
String name)
throws IOException
- This method is called for each selected ZIP-entry.
- Parameters:
in - the inputstream for the entry.out - the outputstream for the entry. In most cases it will be
simply copied over from in, because the entry isn't
modified.newProperties - the complete set of properties that is to be updated
in the document. A module is allowed to modify this set according to its
validation rules. The repository will then use the modified set.oldProperties - the properties the document currently has. This may
be usefull for the validation of newProperties.name - the name of the entry.
- Throws:
IOException