001 package org.shiftone.jrat.provider.tree.command;
002
003 import org.shiftone.jrat.core.spi.Commandlet;
004 import org.shiftone.jrat.provider.tree.TreeMethodHandlerFactory;
005
006 import java.io.OutputStream;
007 import java.io.PrintWriter;
008
009 /**
010 * @author jeff@shiftone.org (Jeff Drost)
011 */
012 public class DumpOutputCommandlet implements Commandlet {
013 private final TreeMethodHandlerFactory treeMethodHandlerFactory;
014
015 public DumpOutputCommandlet(TreeMethodHandlerFactory treeMethodHandlerFactory) {
016 this.treeMethodHandlerFactory = treeMethodHandlerFactory;
017 }
018
019 public void execute(OutputStream output) {
020 PrintWriter out = new PrintWriter(output);
021 // treeMethodHandlerFactory.getRootNode().printXML(out);
022 }
023
024 public String getContentType() {
025 return ContentType.XML;
026 }
027
028 public String getTitle() {
029 return "Dump Tree Statistics (xml)";
030 }
031 }