Package javax.servlet.jsp
Class DefaultJspWriter
java.lang.Object
java.io.Writer
javax.servlet.jsp.JspWriter
javax.servlet.jsp.DefaultJspWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Default implementation of JspWriter for Gumdrop JSP support.
This implementation wraps a standard PrintWriter and provides the JSP-specific output methods required by generated JSP servlets.
- Author:
- Chris Burdess
-
Field Summary
Fields inherited from class javax.servlet.jsp.JspWriter
autoFlush, bufferSize, NO_BUFFER, UNBOUNDED_BUFFER -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the contents of the buffer.voidClears the current contents of the buffer.voidclose()Close the stream.voidflush()Flush the stream.intvoidnewLine()Write a line separator.voidprint(boolean b) Print a boolean value.voidprint(char c) Print a character.voidprint(char[] s) Print an array of characters.voidprint(double d) Print a double-precision floating-point number.voidprint(float f) Print a floating-point number.voidprint(int i) Print an integer.voidprint(long l) Print a long integer.voidPrint an object.voidPrint a string.voidprintln()Terminate the current line by writing the line separator string.voidprintln(boolean x) Print a boolean value and then terminate the line.voidprintln(char x) Print a character and then terminate the line.voidprintln(char[] x) Print an array of characters and then terminate the line.voidprintln(double x) Print a double-precision floating-point number and then terminate the line.voidprintln(float x) Print a floating-point number and then terminate the line.voidprintln(int x) Print an integer and then terminate the line.voidprintln(long x) Print a long integer and then terminate the line.voidPrint an Object and then terminate the line.voidPrint a String and then terminate the line.voidwrite(char[] cbuf) voidwrite(char[] cbuf, int off, int len) voidwrite(int c) voidvoidMethods inherited from class javax.servlet.jsp.JspWriter
getBufferSize, isAutoFlushMethods inherited from class java.io.Writer
append, append, append, nullWriter
-
Method Details
-
newLine
Description copied from class:JspWriterWrite a line separator.- Specified by:
newLinein classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint a boolean value.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint a character.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint an integer.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint a long integer.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint a floating-point number.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint a double-precision floating-point number.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint an array of characters.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint a string.- Specified by:
printin classJspWriter- Throws:
IOException
-
print
Description copied from class:JspWriterPrint an object.- Specified by:
printin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterTerminate the current line by writing the line separator string.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint a boolean value and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint a character and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint an integer and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint a long integer and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint a floating-point number and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint a double-precision floating-point number and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint an array of characters and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint a String and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
println
Description copied from class:JspWriterPrint an Object and then terminate the line.- Specified by:
printlnin classJspWriter- Throws:
IOException
-
clear
Description copied from class:JspWriterClear the contents of the buffer.- Specified by:
clearin classJspWriter- Throws:
IOException
-
clearBuffer
Description copied from class:JspWriterClears the current contents of the buffer.- Specified by:
clearBufferin classJspWriter- Throws:
IOException
-
flush
Description copied from class:JspWriterFlush the stream.- Specified by:
flushin interfaceFlushable- Specified by:
flushin classJspWriter- Throws:
IOException
-
close
Description copied from class:JspWriterClose the stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classJspWriter- Throws:
IOException
-
getRemaining
public int getRemaining()- Specified by:
getRemainingin classJspWriter- Returns:
- the number of unused bytes in the buffer
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-