+ if (meta != null) {
+ try {
+ File summaryFile = new File(infoFile.getAbsolutePath()
+ .replaceFirst("\\.info$", ".summary"));
+ InputStream in = new MarkableFileInputStream(summaryFile);
+ try {
+ String content = IOUtils.readSmallStream(in);
+ Chapter desc = bsPara.makeChapter(null, null, 0,
+ "Description", content, false, null);
+ meta.setResume(desc);
+ } finally {
+ in.close();
+ }
+ } catch (IOException e) {
+ // ignore absent or bad summary
+ }
+
+ return meta;
+ }
+