@Immutable public class FilenameEncoder extends UrlEncoder
UrlEncoder, except that it removes the '*' character from
the list of safe characters.UrlEncoder| Modifier and Type | Field and Description |
|---|---|
static char |
ESCAPE_CHARACTER |
| Constructor and Description |
|---|
FilenameEncoder() |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(String text)
Returns the encoded version of a string.
|
FilenameEncoder |
setSlashEncoded(boolean slashEncoded) |
decode, encode, isSlashEncodedpublic static final char ESCAPE_CHARACTER
public String encode(String text)
encode in interface TextEncoderencode in class UrlEncodertext - the text with characters that are to be encoded.TextDecoder.decode(String)public FilenameEncoder setSlashEncoded(boolean slashEncoded)
setSlashEncoded in class UrlEncoderslashEncoded - Sets slashEncoded to the specified value.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.