public class EncodeForBase64Tag extends BaseEncodeTag
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
encoding |
private static long |
serialVersionUID |
private boolean |
wrap |
| Constructor and Description |
|---|
EncodeForBase64Tag() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
encode(java.lang.String content,
Encoder enc)
Encode tag's content using Base64.
|
java.lang.String |
getEncoding()
Get the encoding used to convert the content to bytes for
encoding.
|
boolean |
getWrap()
Get whether line wrapping at 64 characters is performed.
|
void |
setEncoding(java.lang.String encoding)
Set the encoding used to convert the content to bytes for
encoding.
|
void |
setWrap(boolean wrap)
Set whether line wrapping at 64 characters is performed.
|
doAfterBodydoEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprivate static final long serialVersionUID
private boolean wrap
private java.lang.String encoding
protected java.lang.String encode(java.lang.String content,
Encoder enc)
throws javax.servlet.jsp.JspTagException
encode in class BaseEncodeTagcontent - The tag's content as a Stringenc - Encoder used to call
Encoder.encodeForBase64(byte[], boolean)javax.servlet.jsp.JspTagExceptionpublic void setEncoding(java.lang.String encoding)
encoding - The encoding passed to String.getBytes(String).public java.lang.String getEncoding()
String.getBytes(String).public void setWrap(boolean wrap)
wrap - flag determining wrapping.public boolean getWrap()