| Package | Description |
|---|---|
| org.mmbase.util |
This package contains all kind of generic utilities.
|
| org.mmbase.util.transformers |
Transformers define tranformations of Strings, byte arrays and streams. |
| Modifier and Type | Field and Description |
|---|---|
(package private) CharTransformer |
Casting.StringSerializableInputStream.escaper |
| Modifier and Type | Method and Description |
|---|---|
static String |
Casting.escape(CharTransformer escaper,
CharSequence string) |
static Object |
Casting.wrap(Object o,
CharTransformer escaper)
Wraps an object in another object with a toString as we desire.
|
Object |
Caster.wrap(Object o,
CharTransformer escaper) |
Object |
BasicCaster.wrap(Object o,
CharTransformer escaper) |
| Constructor and Description |
|---|
ListWrapper(List l,
CharTransformer e) |
StringSerializableInputStream(SerializableInputStream is,
CharTransformer e) |
StringWrapper(CharSequence s,
CharTransformer e) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCommandStringTransformer
If you want to transform a Reader stream by the use of an external command, than you can extend
this class.
|
class |
Asciifier
Transforms strings to ascii strings.
|
class |
BufferedReaderTransformer |
class |
ByteCharTransformer
A CharTransformer which wraps a ByteToCharTransformer.
|
class |
Censor
Replaces certain 'forbidden' words by something more decent.
|
class |
ChainedCharTransformer
A CharTransformer which wraps N other CharTransformers, and links them with N - 1 new Threads,
effectively working as a 'chained' transformer.
|
class |
ChunkedTransformer<P>
A chunked transformer is a transformer that transforms on a 'chunk by chunk' base.
|
class |
ConfigurableReaderTransformer
Some Transformers implement more than one transformation.
|
class |
ConfigurableStringTransformer
Some Transformers implement more than one transformation.
|
class |
CopyCharTransformer
This is the character transformer which does not actually transform
anything, it just copies the reader to the writer.
|
class |
CP1252Surrogator
Surrogates the Windows CP1252 characters which are not valid ISO-8859-1.
|
class |
DiacriticsRemover
This transformer removes all diacritics from the characters of a string.
|
class |
Figlet
An escaper based on the amusing 'figlet' tool, which is available on some system.
|
class |
Graphviz
Wraps the tools of graphviz into an MMBase 'chartransformer'.
|
class |
Identifier
Transforms strings to identifiers, replacing punctuation and whitespace with
underscores.
|
class |
InverseCharTransformer
Turns a Transformer around.
|
class |
Javascript
Encodings related Javascript It can escape single quotes, by replacing them by \\', as is needed in document.write actions.
|
class |
Latin3Surrogator
The ISO-8859-3 ('South European') unibyte encoding is used for languages like maltese and
esperanto.
|
class |
LinkFinder
Finds links in the Character String, and makes them 'clickable' for HTML (using a-tags).
|
class |
LoggerCharTransformer
This is the character transformer is like
CopyCharTransformer, but it logs everything that it sees too. |
class |
LowerCaser
Transforms to lowercase
|
class |
MD5
Do MD5 encoding.
|
class |
Perl
And yet another rather idiotic type of Transformer.
|
class |
RadixTransformer
This straight-forward transformer wraps
Long.toString(long, int) and Long.parseLong(String, int). |
class |
ReaderTransformer
You need only to implement transform(Reader, Writer) you have the simplest
kind of tranformer (which is 'streamable').
|
class |
RegexpReplacer
Finds regexps in the Character String, and replaces them.
|
class |
RomanTransformer
Static utilities to deal with roman numbers, and non static functions to transform strings
representing decimal numbers to roman numbers and back.
|
class |
Rot13
Rot13 implementation.
|
class |
Rot5
Rot5 implementation.
|
class |
Sitestat
Transforms the input to the characters which are allowed in Sitestat keys for
page statistics, being: "A-Z, a-z, 0-9, - .
|
class |
SpaceReducer
Replace 1 or more spaces by 1 space, and 1 or more newlines by 1
newline.
|
class |
SpaceRemover
Replace 1 or white space by 1 space, and all spaces on the begin and end.
|
class |
SpaceSwallower
Swallows all spaces.
|
class |
Sql
Encodings related to Sql.
|
class |
StringTransformer
You need only to implement transform(String) you have the simplest
kind of tranformer (which is not 'streamable').
|
class |
Swallower
This tranformer is the equivalent of piping to /dev/null
|
class |
TabToSpacesTransformer
Replace every tab by n spaces.
|
class |
Trimmer
Trims leading and trailing white space.
|
class |
UnicodeEscaper
To escape from and to 'java' like unicode escaping.
|
class |
UpperCaser
A 'hello world' for CharTransformers.
|
class |
Url
Encodings related to URL's.
|
class |
UrlEscaper
Escapes and Unescapes undesirable characters using % (URLEncoding)
Contrary to java.net.URLEncoder, it does not encode '+'.
|
class |
Xml
Transformations related to escaping in XML.
|
class |
XmlEntities
Any non-ASCII character will be replaced by an XML-entity.
|
class |
XmlField
XMLFields in MMBase.
|
class |
YUICSSCompressor
CSS compressor based on YUI Library
|
class |
YUIJavaScriptCompressor
Javascript compressor based on YUI Library
|
| Modifier and Type | Method and Description |
|---|---|
ChainedCharTransformer |
ChainedCharTransformer.add(CharTransformer... col) |
ChainedCharTransformer |
ChainedCharTransformer.add(CharTransformer ct)
Adds a CharTranformer to the chain of CharTransformers.
|
| Modifier and Type | Method and Description |
|---|---|
ChainedCharTransformer |
ChainedCharTransformer.addAll(Collection<CharTransformer> col)
Adds a Collection of CharTranformers to the chain of CharTransformers.
|
| Constructor and Description |
|---|
CharTransformerLink(CharTransformer ct,
Reader r,
Writer w,
boolean cw) |
InverseCharTransformer(CharTransformer c)
The constructor
|
TransformingReader(Reader in,
CharTransformer charTransformer) |
TransformingWriter(Writer out,
CharTransformer charTransformer) |
MMBase2 Utils 2.0.0 - 2019-08-08T23:20