/** * Build the serialized form. * * @param node the XML element that specifies which components to document * @param serializedTree content tree to which the documentation will be added */ public void buildSerializedForm(XMLNode node, Content serializedTree) throws Exception { serializedTree = writer.getHeader(configuration.getText("doclet.Serialized_Form")); buildChildren(node, serializedTree); writer.addFooter(serializedTree); writer.printDocument(serializedTree); writer.close(); }
/** Build the serialized form. */ public void build() throws IOException { if (!serialClassFoundToDocument(configuration.root.classes())) { // Nothing to document. return; } try { writer = configuration.getWriterFactory().getSerializedFormWriter(); if (writer == null) { // Doclet does not support this output. return; } } catch (Exception e) { throw new DocletAbortException(e); } build(layoutParser.parseXML(NAME), contentTree); writer.close(); }