001 package railo.runtime.writer; 002 003 import java.io.IOException; 004 import java.io.OutputStream; 005 006 import javax.servlet.jsp.JspWriter; 007 008 public abstract class CFMLWriter extends JspWriter { 009 010 protected CFMLWriter(int bufferSize, boolean autoFlush) { 011 super(bufferSize, autoFlush); 012 } 013 014 public abstract OutputStream getResponseStream() throws IOException; 015 016 public abstract void setClosed(boolean b) ; 017 018 public abstract void setBufferConfig(int interval, boolean b) throws IOException ; 019 020 public abstract void appendHTMLHead(String text) throws IOException; 021 022 public abstract void writeHTMLHead(String text) throws IOException; 023 024 public abstract String getHTMLHead() throws IOException; 025 026 public abstract void resetHTMLHead() throws IOException; 027 028 029 /** 030 * write the given string without removing whitespace. 031 * @param str 032 * @throws IOException 033 */ 034 public abstract void writeRaw(String str) throws IOException; 035 036 }