use of org.freeplane.core.io.xml.TreeXmlWriter in project freeplane by freeplane.
the class MapWriter method writeNodeAsXml.
public void writeNodeAsXml(final Writer writer, final NodeModel node, final Mode mode, final boolean writeInvisible, final boolean writeChildren, boolean forceFormat) throws IOException {
final TreeXmlWriter xmlWriter = new TreeXmlWriter(writeManager, writer);
xmlWriter.setHint(Hint.MODE, mode);
if (forceFormat) {
xmlWriter.setHint(WriterHint.FORCE_FORMATTING);
}
writeNode(xmlWriter, node, writeInvisible, writeChildren);
xmlWriter.flush();
}
use of org.freeplane.core.io.xml.TreeXmlWriter in project freeplane by freeplane.
the class ProjectSettingsWriter method storeProject.
/**
*********************************************************************************
* METHODS
*********************************************************************************
*/
public void storeProject(final Writer writer, AWorkspaceProject project) throws IOException {
final TreeXmlWriter xmlWriter = new TreeXmlWriter(writeManager, writer);
xmlWriter.setHint(Hint.MODE, MapWriter.Mode.FILE);
writeNode(xmlWriter, project.getModel().getRoot());
xmlWriter.flush();
writer.close();
}
use of org.freeplane.core.io.xml.TreeXmlWriter in project freeplane by freeplane.
the class MapWriter method writeMapAsXml.
public void writeMapAsXml(final MapModel map, final Writer fileout, final Mode mode, final boolean saveInvisible, final boolean forceFormat) throws IOException {
final TreeXmlWriter xmlWriter = new TreeXmlWriter(writeManager, fileout);
xmlWriter.setHint(Hint.MODE, mode);
if (forceFormat) {
xmlWriter.setHint(WriterHint.FORCE_FORMATTING);
}
final XMLElement xmlMap = new XMLElement("map");
setSaveInvisible(saveInvisible);
xmlWriter.addElement(map, xmlMap);
xmlWriter.flush();
fileout.close();
}
use of org.freeplane.core.io.xml.TreeXmlWriter in project freeplane by freeplane.
the class ProjectSettingsWriter method writeNodeAsXml.
public void writeNodeAsXml(final Writer writer, final AWorkspaceTreeNode node) throws IOException {
final TreeXmlWriter xmlWriter = new TreeXmlWriter(writeManager, writer);
writeNode(xmlWriter, node);
xmlWriter.flush();
}
Aggregations