/** ZIP with (PNG) images */
CBZ,
/** LaTeX file with "book" template */
- LATEX;
+ LATEX,
+ /** HTML files in a dedicated directory */
+ HTML,
+
+ ;
+
public String toString() {
return super.toString().toLowerCase();
}
return desc;
}
+ /**
+ * The default extension to add to the output files.
+ *
+ * @return the extension
+ */
+ public String getDefaultExtension() {
+ BasicOutput output = BasicOutput.getOutput(this, false);
+ if (output != null) {
+ return output.getDefaultExtension();
+ }
+
+ return null;
+ }
+
/**
* Call {@link OutputType#valueOf(String.toUpperCase())}.
*
/**
* The default extension to add to the output files.
- * <p>
- * Cannot be NULL!
*
* @return the extension
*/
- protected String getDefaultExtension() {
+ public String getDefaultExtension() {
return "";
}
return new Cbz().setType(type, infoCover, infoCover);
case LATEX:
return new LaTeX().setType(type, infoCover, infoCover);
+ case HTML:
+ return new Html().setType(type, false, false);
}
}