java.lang.Object | +--com.mkaz.servlet.ServletBufferOut
com.mkaz.ServletBufferOut is a java servlet library which provides simplified buffered output for servlets removing all of the out.println and StringBuffer hassles. .
Example Usage:
ServletBufferOut bout = new ServletBufferOut(response); bout.append("This is a line!"); bout.flush();
Constructor Summary | |
ServletBufferOut(javax.servlet.http.HttpServletResponse resp)
Main Constructor. |
|
ServletBufferOut(javax.servlet.http.HttpServletResponse resp,
java.lang.String ctype)
Constructor specifying content type. |
Method Summary | |
void |
append(java.lang.String str)
Append string to the Buffered Output. |
void |
flush()
Flushes the Buffered Output to the screen. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ServletBufferOut(javax.servlet.http.HttpServletResponse resp)
Example: servletBufferOut bout = new servletBufferOut(response);
public ServletBufferOut(javax.servlet.http.HttpServletResponse resp, java.lang.String ctype)
Example: servletBufferOut bout = new servletBufferOut(response, "text/plain");
Method Detail |
public void append(java.lang.String str)
public void flush() throws java.io.IOException