bw.write(" <capabilities>" + indexInfo.getIndexFormat().capabilities + "</capabilities>\n");
bw.write(" </indexFormat>\n");
bw.write(" <directoryImpl>" + indexInfo.getDirImpl() + "</directoryImpl>\n");
Directory dir = indexInfo.getDirectory();
if (dir != null) {
bw.write(" <files count='" + dir.listAll().length + "'>\n");
String[] files = dir.listAll();
Arrays.sort(files);
for (String file : files) {
bw.write(" <file name='" + file +
"' size='" + dir.fileLength(file) +