@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)
Set whether this encoder should use slash encoding.
|
decode, encode, isSlashEncoded
public static final char ESCAPE_CHARACTER
public String encode(String text)
TextEncoder
encode
in interface TextEncoder
encode
in class UrlEncoder
text
- the text with characters that are to be encoded.TextDecoder.decode(String)
public FilenameEncoder setSlashEncoded(boolean slashEncoded)
setSlashEncoded
in class UrlEncoder
slashEncoded
- Sets slashEncoded to the specified value.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.