PercentEscaper(String safeChars, boolean plusForSpace) Constructor

Definition

Constructs a percent escaper with the specified safe characters and optional handling of the space character.

Not that it is allowed, but not necessarily desirable to specify % as a safe character. This has the effect of creating an escaper which has no well defined inverse but it can be useful when escaping additional characters.

public PercentEscaper(String safeChars, boolean plusForSpace)

Parameters

safeChars
java.lang.String

a non null string specifying additional safe characters for this escaper (the ranges 0..9, a..z and A..Z are always safe and should not be specified here)

plusForSpace
boolean

true if ASCII space should be escaped to + rather than %20

Applies to