public class NoneEncoder extends java.lang.Object implements StreamingEncoder
| Constructor and Description |
|---|
NoneEncoder() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
encode(java.lang.Object o)
Encode given input object
|
void |
encodeToStream(Encoder thisInstance,
java.lang.CharSequence source,
int offset,
int len,
EncodedAppender appender,
EncodingState encodingState)
Encode and append portion of source CharSequence to the appender.
|
CodecIdentifier |
getCodecIdentifier()
Gets the codec identifier information.
|
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 |
public java.lang.Object encode(java.lang.Object o)
Encoderpublic boolean isSafe()
Encoderpublic boolean isApplyToSafelyEncoded()
isApplyToSafelyEncoded in interface Encodertrue if this this codec should be applied to a buffer part that is
already encoded with a safe encoderpublic void markEncoded(java.lang.CharSequence string)
EncoderEncodingStateRegistrymarkEncoded in interface Encoderstring - a CharSequence to mark as encodedpublic CodecIdentifier getCodecIdentifier()
CodecIdentifierProvidergetCodecIdentifier in interface CodecIdentifierProviderpublic void encodeToStream(Encoder thisInstance, java.lang.CharSequence source, int offset, int len, EncodedAppender appender, EncodingState encodingState) throws java.io.IOException
StreamingEncoderencodeToStream in interface StreamingEncodersource - The source CharSequenceoffset - Offset from which to start encoding characterslen - Number of characters to encodeappender - the appender to write toencodingState - the current encoding statejava.io.IOException - Signals that an I/O exception has occurred.