java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.aoapps.encoding.taglib.EncodingNullTag
com.aoapps.encoding.taglib.OutTag
- Author:
- AO Industries, Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOnce the outJspWriterhas been replaced to output the proper content type, this version ofEncodingNullTag.doTag()is called.Gets the output type of this tag.voidvoidvoidprotected voidwritePrefix(MediaType containerType, Writer out) Writes any prefix in the container's media type.protected voidwriteSuffix(MediaType containerType, Writer out) Writes any suffix in the container's media type.Methods inherited from class com.aoapps.encoding.taglib.EncodingNullTag
doTag, invoke, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffixMethods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
OutTag
public OutTag()
-
-
Method Details
-
getOutputType
Description copied from class:EncodingNullTagGets the output type of this tag. This is used to determine the correct encoder. If the tag never has any output this should returnnull. Whennullis returned, any output will result in an error.- Specified by:
getOutputTypein classEncodingNullTag
-
setValue
-
setDefault
-
setType
-
writePrefix
Description copied from class:EncodingNullTagWrites any prefix in the container's media type. The output must be valid for the provided type. This will not be called when the output type isnull.This default implementation prints nothing.
- Overrides:
writePrefixin classEncodingNullTag- Parameters:
out- Validates all characters against the container media type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder).- Throws:
JspExceptionIOException- See Also:
-
doTag
Description copied from class:EncodingNullTagOnce the outJspWriterhas been replaced to output the proper content type, this version ofEncodingNullTag.doTag()is called.The body, if present, has already been invoked with any output discarded.
This default implementation does nothing.
- Overrides:
doTagin classEncodingNullTag- Parameters:
out- When the output type isnull, will throw an exception if anything written, otherwise validates all characters against the output type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder).- Throws:
JspExceptionIOException
-
writeSuffix
Description copied from class:EncodingNullTagWrites any suffix in the container's media type. The output must be valid for the provided type. This will not be called when the output type isnull.This default implementation prints nothing.
- Overrides:
writeSuffixin classEncodingNullTag- Parameters:
out- Validates all characters against the container media type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder).- Throws:
JspExceptionIOException- See Also:
-
