com.saxonica.ptree
Class TextObfuscator
java.lang.Object
com.saxonica.ptree.TextObfuscator
- All Implemented Interfaces:
- TextMangler
public class TextObfuscator
- extends Object
- implements TextMangler
An implementation of TextMangler that performs a crude obfuscation of an input string
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextObfuscator
public TextObfuscator(int mask)
mangle
public CharSequence mangle(CharSequence input)
- Convert a character string into another string without losing information
- Specified by:
mangle
in interface TextMangler
- Parameters:
input
- the character string to be converted
- Returns:
- the converted string
unmangle
public CharSequence unmangle(CharSequence input)
- Convert a character string into another string without losing information,
reversing the conversion performed by the mangle() method
- Specified by:
unmangle
in interface TextMangler
- Parameters:
input
- a character string produced by calling mangle()
- Returns:
- the converted string, the original input to the mangle() method
Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.