java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.aoapps.encoding.taglib.EncodingNullTag
com.aoapps.encoding.taglib.OutTag
- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Once the outJspWriter
has been replaced to output the proper content type, this version ofEncodingNullTag.doTag()
is called.Gets the output type of this tag.void
void
void
protected void
writePrefix
(MediaType containerType, Writer out) Writes any prefix in the container's media type.protected void
writeSuffix
(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, writeEncoderSuffix
Methods 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:EncodingNullTag
Gets the output type of this tag. This is used to determine the correct encoder. If the tag never has any output this should returnnull
. Whennull
is returned, any output will result in an error.- Specified by:
getOutputType
in classEncodingNullTag
-
setValue
-
setDefault
-
setType
-
writePrefix
Description copied from class:EncodingNullTag
Writes 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:
writePrefix
in classEncodingNullTag
- Parameters:
out
- Validates all characters against the container media type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
.- Throws:
JspException
IOException
- See Also:
-
doTag
Description copied from class:EncodingNullTag
Once the outJspWriter
has 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:
doTag
in 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:
JspException
IOException
-
writeSuffix
Description copied from class:EncodingNullTag
Writes 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:
writeSuffix
in classEncodingNullTag
- Parameters:
out
- Validates all characters against the container media type. Already optimized viaCoercion.optimize(java.io.Writer, com.aoapps.lang.io.Encoder)
.- Throws:
JspException
IOException
- See Also:
-