+
+ if (meta.getResume() != null) {
+ Story fakeStory = new Story();
+ fakeStory.setMeta(meta);
+ fakeStory.setChapters(Arrays.asList(meta.getResume()));
+
+ Text summaryText = new Text() {
+ @Override
+ protected boolean isWriteCover() {
+ return false;
+ }
+
+ @Override
+ protected boolean isWriteInfo() {
+ return false; // infinite loop if not!
+ }
+
+ @Override
+ public String getDefaultExtension(boolean readerTarget) {
+ return ".summary";
+ }
+
+ @Override
+ protected void writeStoryHeader(Story story)
+ throws IOException {
+ }
+
+ @Override
+ protected void writeStoryFooter(Story story)
+ throws IOException {
+ }
+
+ @Override
+ protected void writeChapterHeader(Chapter chap)
+ throws IOException {
+ }
+
+ @Override
+ protected void writeChapterFooter(Chapter chap)
+ throws IOException {
+ }
+ };
+
+ summaryText.process(fakeStory, targetDir, targetName);