Interface for encoding methods.
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
encode(java.lang.Object o) Encode given input object |
|
boolean |
isApplyToSafelyEncoded() @return true if this this codec should be applied to a buffer part that is
already encoded with a safe encoder |
|
boolean |
isSafe() Checks if this encoder is XSS "safe". |
|
void |
markEncoded(java.lang.CharSequence string) Mark this instance as encoded with this encoder in the current EncodingStateRegistry |
Methods inherited from class | Name |
---|---|
interface CodecIdentifierProvider |
getCodecIdentifier |
Encode given input object
o
- the input object
true
if this this codec should be applied to a buffer part that is
already encoded with a safe encoderChecks if this encoder is XSS "safe". This means that after appling this encoder, the characters have been escaped and are XSS safe to be included in HTML documents.
Mark this instance as encoded with this encoder in the current EncodingStateRegistry
string
- a CharSequence to mark as encoded