import java.util.Map;
import java.util.NoSuchElementException;
import java.util.regex.Pattern;
+import java.util.Collections;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.poi.EncryptedDocumentException;
}
}
- return nameList;
+ return Collections.unmodifiableList(nameList);
}
@Override
void initDrawings(){
DrawingManager2 mgr = workbook.findDrawingGroup();
if(mgr != null) {
- for(int i=0; i < getNumberOfSheets(); i++) {
- getSheetAt(i).getDrawingPatriarch();
+ for(HSSFSheet sh : _sheets) {
+ sh.getDrawingPatriarch();
}
} else {
workbook.createDrawingGroup();
searchForPictures(escherRecords, pictures);
}
}
- return pictures;
+ return Collections.unmodifiableList(pictures);
}
/**
public List<HSSFObjectData> getAllEmbeddedObjects()
{
List<HSSFObjectData> objects = new ArrayList<HSSFObjectData>();
- for (int i = 0; i < getNumberOfSheets(); i++)
+ for (HSSFSheet sheet : _sheets)
{
- getAllEmbeddedObjects(getSheetAt(i), objects);
+ getAllEmbeddedObjects(sheet, objects);
}
- return objects;
+ return Collections.unmodifiableList(objects);
}
/**