public abstract class DocumentFilter extends Object
Learn more
| Constructor and Description |
|---|
DocumentFilter() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentFilter |
createAnd(DocumentFilter... filters)
Creates a logical conjunction of the specified filters.
|
static DocumentFilter |
createCreationTimeLowerBound(Date lowerBound)
Creates a filter for skipping documents with creation date earlier than the lower bound.
|
static DocumentFilter |
createCreationTimeRange(Date lowerBound,
Date upperBound)
Creates a filter for skipping documents with creation date out of the specified range.
|
static DocumentFilter |
createCreationTimeUpperBound(Date upperBound)
Creates a filter for skipping documents with creation date later than the upper bound.
|
static DocumentFilter |
createFileExtension(String... extensions)
Creates a filter for skipping documents that do not have allowable extension.
|
static DocumentFilter |
createFileLengthLowerBound(long lowerBound)
Creates a filter for skipping documents with the length less than the lower bound.
|
static DocumentFilter |
createFileLengthRange(long lowerBound,
long upperBound)
Creates a filter for skipping documents out of the specified document length range.
|
static DocumentFilter |
createFileLengthUpperBound(long upperBound)
Creates a filter for skipping documents with the length greater than the upper bound.
|
static DocumentFilter |
createFilePathRegularExpression(String pattern)
Creates a filter for skipping documents that are not match a regular expression.
|
static DocumentFilter |
createFilePathRegularExpression(String pattern,
int options)
Creates a filter for skipping documents that are not match a regular expression.
|
static DocumentFilter |
createModificationTimeLowerBound(Date lowerBound)
Creates a filter for skipping documents with modification date earlier than the lower bound.
|
static DocumentFilter |
createModificationTimeRange(Date lowerBound,
Date upperBound)
Creates a filter for skipping documents with modification date out of the specified range.
|
static DocumentFilter |
createModificationTimeUpperBound(Date upperBound)
Creates a filter for skipping documents with modification date later than the upper bound.
|
static DocumentFilter |
createNot(DocumentFilter innerFilter)
Creates a filter that has inverse logic in relation to the specified inner filter.
|
static DocumentFilter |
createOr(DocumentFilter... filters)
Creates a logical disjunction of the specified filters.
|
protected static boolean |
customEquals(DocumentFilter left,
DocumentFilter right) |
protected static DocumentFilter |
deserializeProtected(com.aspose.ms.System.IO.Stream stream) |
protected static void |
serialize(DocumentFilter filter,
com.aspose.ms.System.IO.Stream stream) |
abstract String |
toString()
Returns string representation of a document filter.
|
public static DocumentFilter createAnd(DocumentFilter... filters)
filters - The document filters.public static DocumentFilter createCreationTimeLowerBound(Date lowerBound)
lowerBound - The lower bound of the document creation time.public static DocumentFilter createCreationTimeRange(Date lowerBound, Date upperBound)
lowerBound - The lower bound of the document creation time.upperBound - The upper bound of the document creation time.public static DocumentFilter createCreationTimeUpperBound(Date upperBound)
upperBound - The upper bound of the document creation time.public static DocumentFilter createFileExtension(String... extensions)
extensions - The list of allowable extensions.public static DocumentFilter createFileLengthLowerBound(long lowerBound)
lowerBound - The lower bound of the document length.public static DocumentFilter createFileLengthRange(long lowerBound, long upperBound)
lowerBound - The lower bound of the document length.upperBound - The upper bound of the document length.public static DocumentFilter createFileLengthUpperBound(long upperBound)
upperBound - The upper bound of the document length.public static DocumentFilter createFilePathRegularExpression(String pattern)
pattern - The regular expression pattern.public static DocumentFilter createFilePathRegularExpression(String pattern, int options)
pattern - The regular expression pattern.options - The regular expression options.public static DocumentFilter createModificationTimeLowerBound(Date lowerBound)
lowerBound - The lower bound of the document modification time.public static DocumentFilter createModificationTimeRange(Date lowerBound, Date upperBound)
lowerBound - The lower bound of the document modification time.upperBound - The upper bound of the document modification time.public static DocumentFilter createModificationTimeUpperBound(Date upperBound)
upperBound - The upper bound of the document modification time.public static DocumentFilter createNot(DocumentFilter innerFilter)
innerFilter - The inner document filter.public static DocumentFilter createOr(DocumentFilter... filters)
filters - The document filters.protected static boolean customEquals(DocumentFilter left, DocumentFilter right)
protected static DocumentFilter deserializeProtected(com.aspose.ms.System.IO.Stream stream)
protected static void serialize(DocumentFilter filter, com.aspose.ms.System.IO.Stream stream)
Copyright © 2026. All rights reserved.