All Classes and Interfaces
Class
Description
Abstract base class for implementing encoders that do character replacements
Implements the
StreamingEncoder interface that enables efficient
streaming encodingAbstract base class for implementations of
EncodedAppender interfaceEscapes characters in JSON output
Encoder implementation that escapes some characters for inclusion in XML documents
Currently ', ", <, > and & characters are replaced with XML entities.
Marker interface for telling that the underlying char array is directly accessible
This interface is missing from the JVM although String, StringBuffer and StringBuilder all have this method.
Utility functions for handling java.lang.CharSequence instances
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.
Information about the codec that identifies it and tells it's aliases.
interface for decoder methods
default implementation of
CodecIdentifierdefault implementation of
EncodingStateRegistryMarks a class capable of encoding itself with given Encoder
This is the input interface to the streaming encoding solution.
This interface marks an instance capable of getting a EncodedAppender
instance that is connected to it.
A java.io.Writer implementation that writes to a
EncodedAppender with
a certain encoder
This class isn't thread-safe.This interface marks an instance capable of getting a
EncodedAppenderWriter instance that is connected to it with a certain
encoder fixed.Interface for encoding methods.
Marks a instance capable of providing information about the current encoder
that is in use
Marks a class capable of encoding to target Writer
Holds the state of applied encodings
Default implementation of
EncodingStateEncodingStateRegistry keeps encoding state of CharSequence instances.
This interface marks an instance capable of looking of the current
EncodingStateRegistryFast in-memory PrintWriter implementation.
Java's default StringWriter uses a StringBuffer which is synchronized.
Factory to lazily instantiate the destination.
PrintWriter implementation that doesn't have synchronization.
Encodes and decodes strings to and from HTML.
HTML4 decoder that uses Spring's HtmlUtils.htmlUnescape to do the unescaping.
This encoder is for HTML4 documents.
HTMLEncoder implementation currently this doesn't add any extra features to
XMLEncoder This encoder is for XML, XHTML and HTML5 documents.
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.
Codec that doesn't do any encoding or decoding.
An in-memory buffer that provides OutputStream and InputStream interfaces.
StreamCharBuffer is a multipurpose in-memory buffer that can replace JDK
in-memory buffers (StringBuffer, StringBuilder, StringWriter).
Interface for a Writer that gets initialized if it is used
Can be used for passing in to "connectTo" method of StreamCharBuffer
Marks a class capable of encoding itself with given Encoder to given
EncodedAppender instance
Streaming encoder interface that makes it possible to encode a portion of a
CharSequence and append it directly to the EncodedAppender instance.
EncodedAppender implementation used for piping / chaining several StreamingEncoders
Marks a class capable of encoding itself with given EncodesToWriter instance to given
Writer instance
Provides optimized access to java.lang.String internals
- Optimized way of creating java.lang.String by reusing a char[] buffer
- Optimized way of writing String to java.io.Writer
java.lang.String creation reusing a char[] buffer requires Java 1.5+
System property "stringchararrayaccessor.disabled" disables this hack.
An EncodedAppender implementation that writes to a java.io.Writer.