001 package railo.runtime.dump; 002 003 import java.io.IOException; 004 import java.io.Writer; 005 006 import railo.runtime.PageContext; 007 008 /** 009 * writes out dumpdata to a writer 010 */ 011 public interface DumpWriter { 012 013 public static int DEFAULT_RICH=0; 014 public static int DEFAULT_PLAIN=1; 015 public static int DEFAULT_NONE=2; 016 017 018 /** 019 * @param data 020 * @param writer 021 * @throws IOException 022 */ 023 public void writeOut(PageContext pc,DumpData data, Writer writer, boolean expand) throws IOException; 024 025 /** 026 * cast dumpdata to a string 027 * @param data 028 */ 029 public String toString(PageContext pc,DumpData data, boolean expand); 030 031 }