Class VelocityBodyContent
java.lang.Object
java.io.Writer
javax.servlet.jsp.JspWriter
javax.servlet.jsp.tagext.BodyContent
org.apache.velocity.tools.view.jsp.jspimpl.VelocityBodyContent
- All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
public class VelocityBodyContent
extends javax.servlet.jsp.tagext.BodyContent
Publishes a block inside a Velocity directive as a
BodyContent.-
Field Summary
Fields inherited from class javax.servlet.jsp.JspWriter
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER -
Constructor Summary
ConstructorsConstructorDescriptionVelocityBodyContent(javax.servlet.jsp.JspWriter jspWriter, org.apache.velocity.runtime.parser.node.ASTBlock block, org.apache.velocity.context.InternalContextAdapter context) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoidclose()intvoidnewLine()voidprint(boolean b) voidprint(char c) voidprint(char[] s) voidprint(double d) voidprint(float f) voidprint(int i) voidprint(long l) voidvoidvoidprintln()voidprintln(boolean x) voidprintln(char x) voidprintln(char[] x) voidprintln(double x) voidprintln(float x) voidprintln(int x) voidprintln(long x) voidvoidvoidwrite(char[] cbuf, int off, int len) voidMethods inherited from class javax.servlet.jsp.tagext.BodyContent
clearBody, flush, getEnclosingWriterMethods inherited from class javax.servlet.jsp.JspWriter
getBufferSize, isAutoFlush
-
Constructor Details
-
VelocityBodyContent
public VelocityBodyContent(javax.servlet.jsp.JspWriter jspWriter, org.apache.velocity.runtime.parser.node.ASTBlock block, org.apache.velocity.context.InternalContextAdapter context) Constructor.- Parameters:
jspWriter- The JSP writer to be used by default.block- The block to wrap.context- The directive context.
-
-
Method Details
-
getReader
- Specified by:
getReaderin classjavax.servlet.jsp.tagext.BodyContent
-
getString
- Specified by:
getStringin classjavax.servlet.jsp.tagext.BodyContent
-
writeOut
- Specified by:
writeOutin classjavax.servlet.jsp.tagext.BodyContent- Throws:
IOException
-
newLine
- Specified by:
newLinein classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
clear
- Specified by:
clearin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
clearBuffer
- Specified by:
clearBufferin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
getRemaining
public int getRemaining()- Specified by:
getRemainingin classjavax.servlet.jsp.JspWriter
-
write
- Specified by:
writein classWriter- Throws:
IOException
-