java.lang.Object | |
↳ | com.pspdfkit.api.redaction.description.RedactionRegEx.Builder |
A builder for creating RedactionRegEx
instances.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected Color | fillColor | ||||||||||
protected final Set<Integer> | pages |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder(String regexPattern)
Create the builder to help construct a
RedactionRegEx . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RedactionRegEx |
build()
Construct the
RedactionRegEx with the parameters given to this builder. | ||||||||||
RedactionRegEx.Builder |
setFillColor(Color fillColor)
Defines the color of the box used to cover the redacted content.
| ||||||||||
RedactionRegEx.Builder |
setPages(int... pages)
Defines the pages to search for content to mark for redaction.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setPagesInternal(int[] pages)
To be used internally called from the the definition of
setPages(int) in extended class. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create the builder to help construct a RedactionRegEx
.
regexPattern | A ICU style regular expression pattern. All regular expression escapes must be double escaped. Note: Text lines end with CRLF (`\r\n`). |
---|
Construct the RedactionRegEx
with the parameters given to this builder.
RedactionRegEx
.
Defines the color of the box used to cover the redacted content.
fillColor | A Color used for the box that covers the redacted content. |
---|
Defines the pages to search for content to mark for redaction.
pages | A variable length argument of ints representing the pages to redact. Page values must be greater or equal to 0. |
---|
To be used internally called from the the definition of setPages(int)
in extended class.