Class JSONEncodingInputStreamDirective
java.lang.Object
org.apache.velocity.runtime.directive.Directive
de.hybris.platform.auditreport.service.impl.velocity.JSONEncodingInputStreamDirective
- All Implemented Interfaces:
Cloneable,org.apache.velocity.runtime.directive.DirectiveConstants
public class JSONEncodingInputStreamDirective
extends org.apache.velocity.runtime.directive.Directive
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.velocity.runtime.directive.Directive
log, rsvcFields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants
BLOCK, LINE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.velocity.runtime.directive.Directive
checkArgs, getColumn, getLine, getScopeName, getTemplate, getTemplateName, init, isScopeProvided, makeScope, postRender, preRender, setLocation, setLocation
-
Field Details
-
DIRECTIVE_NAME
- See Also:
-
AMP
- See Also:
-
AMP_ENTITY
- See Also:
-
LT
- See Also:
-
LT_ENTITY
- See Also:
-
GT
- See Also:
-
GT_ENTITY
- See Also:
-
-
Constructor Details
-
JSONEncodingInputStreamDirective
public JSONEncodingInputStreamDirective()
-
-
Method Details
-
getName
- Specified by:
getNamein classorg.apache.velocity.runtime.directive.Directive
-
getType
public int getType()- Specified by:
getTypein classorg.apache.velocity.runtime.directive.Directive
-
render
public boolean render(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node) throws IOException, org.apache.velocity.exception.MethodInvocationException - Specified by:
renderin classorg.apache.velocity.runtime.directive.Directive- Throws:
IOExceptionorg.apache.velocity.exception.MethodInvocationException
-
encodeHTMLEntities
- Parameters:
text- text to encode entities- Returns:
- encoded text
-