/******************************************************************************************************************* * * * ******************************************************************************************************************/ @Override public void visitAttachment (final @Nonnull Document attachment) throws IOException { write(new File(folder, documentBaseName + getExtension(attachment)), attachment); }
/******************************************************************************************************************* * * * ******************************************************************************************************************/ // TODO: increment the ProgressListener @Override public void visitBody (final @Nonnull Document document) throws IOException { write(new File(folder, documentBaseName + ".txt"), document); }
report.accept(new DocumentWriter(reportBaseName, reportFolder));