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 import railo.runtime.cache.legacy.CacheItem; 009 010 public abstract class CFMLWriter extends JspWriter { 011 012 protected CFMLWriter(int bufferSize, boolean autoFlush) { 013 super(bufferSize, autoFlush); 014 } 015 016 public abstract OutputStream getResponseStream() throws IOException; 017 018 public abstract void setClosed(boolean b) ; 019 020 public abstract void setBufferConfig(int interval, boolean b) throws IOException ; 021 022 public abstract void appendHTMLHead(String text) throws IOException; 023 024 public abstract void writeHTMLHead(String text) throws IOException; 025 026 public abstract String getHTMLHead() throws IOException; 027 028 public abstract void resetHTMLHead() throws IOException; 029 030 031 /** 032 * write the given string without removing whitespace. 033 * @param str 034 * @throws IOException 035 */ 036 public abstract void writeRaw(String str) throws IOException; 037 038 public abstract void setAllowCompression(boolean allowCompression); 039 040 041 public abstract void doCache(railo.runtime.cache.legacy.CacheItem ci); 042 043 /** 044 * @return the cacheResource 045 */ 046 public abstract CacheItem getCacheItem(); 047 048 }