ro.isdc.wro.util
Class Transformers
java.lang.Object
ro.isdc.wro.util.Transformers
public class Transformers
- extends Object
Contains factory methods for creating Transformer
object.
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transformers
public Transformers()
extensionTransformer
public static Transformer<String> extensionTransformer(String newExtension)
- Creates a
Transformer
which replace a original filename extension with a new extension.
- Parameters:
newExtension
- extension to use for the returned value.
- Returns:
- original filename but with the new extension.
baseNameSuffixTransformer
public static Transformer<String> baseNameSuffixTransformer(String suffix)
- Appends a suffix to the source baseName.
- Parameters:
suffix
- to append.
- Returns:
Transformer
capable to append a suffix to provided baseName.
noOpTransformer
public static Transformer<String> noOpTransformer()
- Returns:
- a
Transformer
which doesn't change the input.
Copyright © 2008-2013. All Rights Reserved.