Package org.mmbase.util.transformers

`Tranformers' define tranformations of Strings, byte arrays and streams.


Interface Summary
ByteToCharTransformer Interface for transformations.
ByteTransformer Interface for transformations.
CharTransformer Interface for transformations.
ConfigurableTransformer Interface for transformations.
Transformer Interface for transformations.

Class Summary
AbstractCommandStringTransformer If you want to transform a Reader stream by the use of an external command, than you can extend this class.
Base64 Uses the sun.misc classes to do BASE64 encoding and decoding.
Censor Replaces certain 'forbidden' words by something more decent.
ChainedCharTransformer A CharTransformer which wraps N other CharTransformers, and links them with N - 1 new Threads, effectively working as a 'chained' transformer.
Config Describes what encoding is configured.
ConfigurableReaderTransformer Some Transformers implement more than one transformation.
ConfigurableStringTransformer Some Transformers implement more than one transformation.
CopyCharTransformer This is the character transformer which does not actually transform anything, it just copies the reader to the writer.
Figlet An escaper based on the amusing 'figlet' tool, which is available on some system.
Identifier Transforms strings to identifiers, replacing punctuation and whitespace with underscores.
InverseCharTransformer Turns a Transformer around.
Latin3Surrogator The ISO-8859-3 ('South European') unibyte encoding is used for languages like maltese and esperanto.
LinkFinder Finds links in the Character String, and makes them 'clickable' for HTML (using a-tags).
LowerCaser Transforms to lowercase
MD5 Do MD5 encoding.
Perl And yet another rather idiotic type of Transformer.
ReaderTransformer You need only to implement transform(Reader, Writer) you have the simplest kind of tranformer (which is 'streamable').
SpaceReducer Replace 1 or more spaces by 1 space, and 1 or more newlines by 1 newline.
Sql Encodings related to Sql.
StringTransformer You need only to implement transform(String) you have the simplest kind of tranformer (which is not 'streamable').
Swallower This tranformer is the equivalent of piping to /dev/null
TabToSpacesTransformer Replace every tab by n spaces.
Transformers Utitilies.
TransformingWriter A Filtering Writer based on CharTransformers.
Trimmer Trims leading and trailing white space.
UpperCaser A 'hello world' for CharTransformers.
Url Encodings related to URL's.
Xml Transformations related to escaping in XML.
XmlEntities Any non-ASCII character will be replaced by an XML-entity.
XmlField XMLFields in MMBase.

Exception Summary
UnknownCodingException Class UnknownCodingException

Package org.mmbase.util.transformers Description

`Tranformers' define tranformations of Strings, byte arrays and streams.

Transformers are devided in three species. CharTransformers which transform some String to another String (or Reader to a Writer). Then there are transformation which take a byte array (or an InputStream) and transform that to a String (or a Writer), these are called ByteToCharTransformers. And the last type are are the ByteTranformers, which tranform a byte array to another byte array (or an InputStream to an OutputStream).

All Transformers can be specialized to 'ConfigurableTransformers'.

Several Abstract implemenations are present too. E.g. the 'ReaderTransformer' is nearly a complete CharTransformer, only the function wich pipes a Reader to a Writer is abstract. StringTranformer is a CharTransformer which' only abstract function is the one taking a String argument.

MMBase build