railo.runtime.writer
Class CFMLWriterWSPref

java.lang.Object
  extended by java.io.Writer
      extended by javax.servlet.jsp.JspWriter
          extended by railo.runtime.writer.CFMLWriter
              extended by railo.runtime.writer.CFMLWriterImpl
                  extended by railo.runtime.writer.CFMLWriterWSPref
All Implemented Interfaces:
Closeable, Flushable, Appendable, WhiteSpaceWriter

public final class CFMLWriterWSPref
extends CFMLWriterImpl
implements WhiteSpaceWriter

JSP Writer that Remove WhiteSpace from given content while preserving pre-formatted spaces in Tags like <CODE> <PRE> and <TEXTAREA>


Field Summary
static char CHAR_NL
           
static char CHAR_RETURN
           
static char CHAR_SPACE
           
 
Fields inherited from class javax.servlet.jsp.JspWriter
DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER
 
Constructor Summary
CFMLWriterWSPref(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, int bufferSize, boolean autoFlush, boolean closeConn, boolean showVersion, boolean contentLength, boolean allowCompression)
          constructor of the class
 
Method Summary
 void clear()
           
 void clearBuffer()
           
 void close()
           
 void flush()
           
 int getRemaining()
           
 void initHeaderBuffer()
          just a wrapper function for ACF
 void newLine()
           
 void print(boolean b)
           
 void print(char c)
          sends a character to output stream if it is not a consecutive white-space unless we're inside a PRE or TEXTAREA tag.
 void print(char[] chars)
           
 void print(double d)
           
 void print(float f)
           
 void print(int i)
           
 void print(long l)
           
 void print(Object obj)
           
 void print(String str)
           
 void println()
           
 void println(boolean b)
           
 void println(char c)
           
 void println(char[] chars)
           
 void println(double d)
           
 void println(float f)
           
 void println(int i)
           
 void println(long l)
           
 void println(Object obj)
           
 void println(String str)
           
 void write(char[] chars)
           
 void write(char[] chars, int off, int len)
           
 void write(int i)
           
 void write(String str)
           
 void write(String str, int off, int len)
           
 void writeRaw(String str)
          write the given string without removing whitespace.
 
Methods inherited from class railo.runtime.writer.CFMLWriterImpl
appendHTMLHead, doCache, getCacheItem, getHTMLHead, getResponseStream, getString, isFlushed, resetHTMLHead, setAllowCompression, setBufferConfig, setClosed, toString, writeHTMLHead
 
Methods inherited from class javax.servlet.jsp.JspWriter
getBufferSize, isAutoFlush
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHAR_NL

public static final char CHAR_NL
See Also:
Constant Field Values

CHAR_RETURN

public static final char CHAR_RETURN
See Also:
Constant Field Values

CHAR_SPACE

public static final char CHAR_SPACE
See Also:
Constant Field Values
Constructor Detail

CFMLWriterWSPref

public CFMLWriterWSPref(javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse rsp,
                        int bufferSize,
                        boolean autoFlush,
                        boolean closeConn,
                        boolean showVersion,
                        boolean contentLength,
                        boolean allowCompression)
constructor of the class

Parameters:
rsp -
bufferSize -
autoFlush -
Method Detail

print

public void print(char c)
           throws IOException
sends a character to output stream if it is not a consecutive white-space unless we're inside a PRE or TEXTAREA tag.

Overrides:
print in class CFMLWriterImpl
Parameters:
c -
Throws:
IOException
See Also:
JspWriter.print(char)

writeRaw

public void writeRaw(String str)
              throws IOException
Description copied from class: CFMLWriter
write the given string without removing whitespace.

Overrides:
writeRaw in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriter.writeRaw(java.lang.String)

initHeaderBuffer

public void initHeaderBuffer()
                      throws IOException
just a wrapper function for ACF

Overrides:
initHeaderBuffer in class CFMLWriterImpl
Throws:
IOException

clear

public final void clear()
                 throws IOException
Overrides:
clear in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.clear()

clearBuffer

public final void clearBuffer()
Overrides:
clearBuffer in class CFMLWriterImpl
See Also:
CFMLWriterImpl.clearBuffer()

close

public final void close()
                 throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.close()

flush

public final void flush()
                 throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.flush()

getRemaining

public final int getRemaining()
Overrides:
getRemaining in class CFMLWriterImpl
See Also:
CFMLWriterImpl.getRemaining()

newLine

public final void newLine()
                   throws IOException
Overrides:
newLine in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.newLine()

print

public final void print(boolean b)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(boolean)

print

public final void print(char[] chars)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(char[])

print

public final void print(double d)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(double)

print

public final void print(float f)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(float)

print

public final void print(int i)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(int)

print

public final void print(long l)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(long)

print

public final void print(Object obj)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(java.lang.Object)

print

public final void print(String str)
                 throws IOException
Overrides:
print in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.print(java.lang.String)

println

public final void println()
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println()

println

public final void println(boolean b)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(boolean)

println

public final void println(char c)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(char)

println

public final void println(char[] chars)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(char[])

println

public final void println(double d)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(double)

println

public final void println(float f)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(float)

println

public final void println(int i)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(int)

println

public final void println(long l)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(long)

println

public final void println(Object obj)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(java.lang.Object)

println

public final void println(String str)
                   throws IOException
Overrides:
println in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.println(java.lang.String)

write

public final void write(char[] chars,
                        int off,
                        int len)
                 throws IOException
Overrides:
write in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.write(char[], int, int)

write

public final void write(String str,
                        int off,
                        int len)
                 throws IOException
Overrides:
write in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.write(java.lang.String, int, int)

write

public final void write(char[] chars)
                 throws IOException
Overrides:
write in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.write(char[])

write

public final void write(int i)
                 throws IOException
Overrides:
write in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.write(int)

write

public final void write(String str)
                 throws IOException
Overrides:
write in class CFMLWriterImpl
Throws:
IOException
See Also:
CFMLWriterImpl.write(java.lang.String)


Copyright © 2012 Railo