railo.runtime.writer
Class JspWriterImplByteBuffer

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.JspWriterImplByteBuffer
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class JspWriterImplByteBuffer
extends CFMLWriter

Implementation of a JSpWriter


Field Summary
 
Fields inherited from class javax.servlet.jsp.JspWriter
DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER
 
Constructor Summary
JspWriterImplByteBuffer(javax.servlet.http.HttpServletResponse response)
          constructor of the class
JspWriterImplByteBuffer(javax.servlet.http.HttpServletResponse response, int bufferSize, boolean autoFlush)
          constructor of the class
 
Method Summary
 void appendHTMLHead(String headData)
           
 void clear()
           
 void clearBuffer()
           
 void close()
           
 void flush()
           
 String getHTMLHead()
           
 int getRemaining()
           
 OutputStream getResponseStream()
           
 void initHeaderBuffer()
          just a wrapper function for ACF
 boolean isFlushed()
           
 void newLine()
           
 void print(boolean arg)
           
 void print(char arg)
           
 void print(char[] arg)
           
 void print(double arg)
           
 void print(float arg)
           
 void print(int arg)
           
 void print(long arg)
           
 void print(Object arg)
           
 void print(String arg)
           
 void println()
           
 void println(boolean arg)
           
 void println(char arg)
           
 void println(char[] arg)
           
 void println(double arg)
           
 void println(float arg)
           
 void println(int arg)
           
 void println(long arg)
           
 void println(Object arg)
           
 void println(String arg)
           
 void resetHTMLHead()
           
 void setBufferConfig(int bufferSize, boolean autoFlush)
          reset configuration of buffer
 void setClosed(boolean closed)
           
 void write(char[] cbuf)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(String str)
           
 void write(String str, int off, int len)
           
 void writeHTMLHead(String headData)
           
 void writeRaw(String str)
          write the given string without removing whitespace.
 
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, toString, wait, wait, wait
 

Constructor Detail

JspWriterImplByteBuffer

public JspWriterImplByteBuffer(javax.servlet.http.HttpServletResponse response,
                               int bufferSize,
                               boolean autoFlush)
constructor of the class

Parameters:
response - Response Object
bufferSize - buffer Size
autoFlush - do auto flush Content

JspWriterImplByteBuffer

public JspWriterImplByteBuffer(javax.servlet.http.HttpServletResponse response)
constructor of the class

Parameters:
response - Response Object
Method Detail

print

public void print(char[] arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(char[])

setBufferConfig

public void setBufferConfig(int bufferSize,
                            boolean autoFlush)
                     throws IOException
reset configuration of buffer

Specified by:
setBufferConfig in class CFMLWriter
Parameters:
bufferSize - size of the buffer
autoFlush - does the buffer autoflush
Throws:
IOException

appendHTMLHead

public void appendHTMLHead(String headData)
                    throws IOException
Specified by:
appendHTMLHead in class CFMLWriter
Parameters:
headData -
Throws:
IOException

writeHTMLHead

public void writeHTMLHead(String headData)
                   throws IOException
Specified by:
writeHTMLHead in class CFMLWriter
Throws:
IOException
See Also:
CFMLWriter.writeHTMLHead(java.lang.String)

getHTMLHead

public String getHTMLHead()
                   throws IOException
Specified by:
getHTMLHead in class CFMLWriter
Throws:
IOException
See Also:
CFMLWriter.getHTMLHead()

resetHTMLHead

public void resetHTMLHead()
                   throws IOException
Specified by:
resetHTMLHead in class CFMLWriter
Throws:
IOException
See Also:
CFMLWriter.resetHTMLHead()

initHeaderBuffer

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

Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException
See Also:
Writer.write(char[], int, int)

clear

public void clear()
           throws IOException
Specified by:
clear in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.clear()

clearBuffer

public void clearBuffer()
Specified by:
clearBuffer in class javax.servlet.jsp.JspWriter
See Also:
JspWriter.clearBuffer()

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
Writer.flush()

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
Writer.close()

getRemaining

public int getRemaining()
Specified by:
getRemaining in class javax.servlet.jsp.JspWriter
See Also:
JspWriter.getRemaining()

newLine

public void newLine()
             throws IOException
Specified by:
newLine in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.newLine()

print

public void print(boolean arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(boolean)

print

public void print(char arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(char)

print

public void print(int arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(int)

print

public void print(long arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(long)

print

public void print(float arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(float)

print

public void print(double arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(double)

print

public void print(String arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(java.lang.String)

print

public void print(Object arg)
           throws IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.print(java.lang.Object)

println

public void println()
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println()

println

public void println(boolean arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(boolean)

println

public void println(char arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(char)

println

public void println(int arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(int)

println

public void println(long arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(long)

println

public void println(float arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(float)

println

public void println(double arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(double)

println

public void println(char[] arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(char[])

println

public void println(String arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(java.lang.String)

println

public void println(Object arg)
             throws IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
IOException
See Also:
JspWriter.println(java.lang.Object)

write

public void write(char[] cbuf)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException
See Also:
Writer.write(char[])

write

public void write(int c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException
See Also:
Writer.write(int)

write

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

write

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

isFlushed

public boolean isFlushed()
Returns:
Returns the flushed.

setClosed

public void setClosed(boolean closed)
Specified by:
setClosed in class CFMLWriter

getResponseStream

public OutputStream getResponseStream()
                               throws IOException
Specified by:
getResponseStream in class CFMLWriter
Throws:
IOException
See Also:
CFMLWriter.getResponseStream()

writeRaw

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

Specified by:
writeRaw in class CFMLWriter
Throws:
IOException
See Also:
CFMLWriter.writeRaw(java.lang.String)


Copyright © 2012 Railo