public class EncodeForBase64Tag extends BaseEncodeTag
| Constructor and Description |
|---|
EncodeForBase64Tag() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
encode(String content,
Encoder enc)
Encode tag's content using Base64.
|
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(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, setValueprotected String encode(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(String encoding)
encoding - The encoding passed to String.getBytes(String).public String getEncoding()
String.getBytes(String).public void setWrap(boolean wrap)
wrap - flag determining wrapping.public boolean getWrap()
Copyright © 2016 The Open Web Application Security Project (OWASP). All rights reserved.