* Whether to use a folder hierarchy in the archive file that
* reflects the collection hierarchy
*/
private void compressCollection(OutputStream os, Collection col, boolean useHierarchy, String stripOffset) throws IOException, SAXException, LockException, PermissionDeniedException {
// iterate over child documents
MutableDocumentSet childDocs = new DefaultDocumentSet();
col.getDocuments(context.getBroker(), childDocs);
for (Iterator<DocumentImpl> itChildDocs = childDocs.getDocumentIterator(); itChildDocs
.hasNext();) {
DocumentImpl childDoc = (DocumentImpl) itChildDocs.next();
childDoc.getUpdateLock().acquire(Lock.READ_LOCK);
try {
compressResource(os, childDoc, useHierarchy, stripOffset, "", null);