Abstract base class for implementing encoders that do character replacements
Implements the StreamingEncoder interface that enables efficient
streaming encoding
Checks if start == 0 and count == length of CharSequence
It does this check only for String, StringBuilder and StringBuffer classes which have a fast way to check length
This interface can be used to tell that a Grails Codec class should use these
methods for creating the encoder and decoder instances instead of using
conventional encode/decode methods.
Used for making strings safe to be included in a SCRIPT tag besides normal
Javascript escaping, possibly "unsafe" characters are escaped too so that
it's safe to include an escaped string in a HTML SCRIPT tag.