public interface Encoder extends CodecIdentifierProvider
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
encode(java.lang.Object o)
Encode given input object
|
boolean |
isApplyToSafelyEncoded() |
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 |
getCodecIdentifierjava.lang.Object encode(java.lang.Object o)
o - the input objectboolean isSafe()
boolean isApplyToSafelyEncoded()
true if this this codec should be applied to a buffer part that is
already encoded with a safe encodervoid markEncoded(java.lang.CharSequence string)
EncodingStateRegistrystring - a CharSequence to mark as encoded