|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.support.encoding.DefaultEncodingStateRegistry
public final class DefaultEncodingStateRegistry extends java.lang.Object
default implementation of EncodingStateRegistry
Field Summary | |
---|---|
static Encoder |
NONE_ENCODER
|
Method Summary | |
---|---|
EncodingState
|
getEncodingStateFor(java.lang.CharSequence string)
|
boolean
|
isEncodedWith(Encoder encoder, java.lang.CharSequence string)
|
static boolean
|
isPreviousEncoderSafeOrEqual(Encoder encoderToApply, Encoder previousEncoder)
Checks if is previous encoder is already "safe", equal or equivalent |
void
|
registerEncodedWith(Encoder encoder, java.lang.CharSequence escaped)
|
boolean
|
shouldEncodeWith(Encoder encoderToApply, java.lang.CharSequence string)
|
static boolean
|
shouldEncodeWith(Encoder encoderToApply, EncodingState currentEncodingState)
Checks if encoder should be applied to a input with given encoding state |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static Encoder NONE_ENCODER
Method Detail |
---|
public EncodingState getEncodingStateFor(java.lang.CharSequence string)
public boolean isEncodedWith(Encoder encoder, java.lang.CharSequence string)
public static boolean isPreviousEncoderSafeOrEqual(Encoder encoderToApply, Encoder previousEncoder)
encoderToApply
- the encoder to applypreviousEncoder
- the previous encoder
public void registerEncodedWith(Encoder encoder, java.lang.CharSequence escaped)
public boolean shouldEncodeWith(Encoder encoderToApply, java.lang.CharSequence string)
public static boolean shouldEncodeWith(Encoder encoderToApply, EncodingState currentEncodingState)
encoderToApply
- the encoder to applycurrentEncodingState
- the current encoding state
Groovy Documentation