public class ObjectStreamClassPredicate extends Object implements java.util.function.Predicate<ObjectStreamClass>
The reject list takes precedence over the accept list.
| Constructor and Description |
|---|
ObjectStreamClassPredicate()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectStreamClassPredicate |
accept(Class<?>... classes)
Accepts the specified classes for deserialization, unless they are otherwise rejected.
|
ObjectStreamClassPredicate |
accept(ClassNameMatcher matcher)
Accepts class names where the supplied ClassNameMatcher matches for deserialization, unless they are otherwise rejected.
|
ObjectStreamClassPredicate |
accept(Pattern pattern)
Accepts class names that match the supplied pattern for deserialization, unless they are otherwise rejected.
|
ObjectStreamClassPredicate |
accept(String... patterns)
Accepts the wildcard specified classes for deserialization, unless they are otherwise rejected.
|
ObjectStreamClassPredicate |
reject(Class<?>... classes)
Rejects the specified classes for deserialization, even if they are otherwise accepted.
|
ObjectStreamClassPredicate |
reject(ClassNameMatcher m)
Rejects class names where the supplied ClassNameMatcher matches for deserialization, even if they are otherwise accepted.
|
ObjectStreamClassPredicate |
reject(Pattern pattern)
Rejects class names that match the supplied pattern for deserialization, even if they are otherwise accepted.
|
ObjectStreamClassPredicate |
reject(String... patterns)
Rejects the wildcard specified classes for deserialization, even if they are otherwise accepted.
|
boolean |
test(ObjectStreamClass objectStreamClass)
Tests that the ObjectStreamClass conforms to requirements.
|
boolean |
test(String name)
Tests that the class name conforms to requirements.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, isEqual, negate, orpublic ObjectStreamClassPredicate()
public ObjectStreamClassPredicate accept(Class<?>... classes)
The reject list takes precedence over the accept list.
classes - Classes to acceptpublic ObjectStreamClassPredicate accept(ClassNameMatcher matcher)
The reject list takes precedence over the accept list.
matcher - a class name matcher to accept objects.public ObjectStreamClassPredicate accept(Pattern pattern)
The reject list takes precedence over the accept list.
pattern - a Pattern for compiled regular expression.public ObjectStreamClassPredicate accept(String... patterns)
The reject list takes precedence over the accept list.
patterns - Wildcard file name patterns as defined by FilenameUtils.wildcardMatchpublic ObjectStreamClassPredicate reject(Class<?>... classes)
The reject list takes precedence over the accept list.
classes - Classes to rejectpublic ObjectStreamClassPredicate reject(ClassNameMatcher m)
The reject list takes precedence over the accept list.
m - the matcher to usepublic ObjectStreamClassPredicate reject(Pattern pattern)
The reject list takes precedence over the accept list.
pattern - standard Java regexppublic ObjectStreamClassPredicate reject(String... patterns)
The reject list takes precedence over the accept list.
patterns - Wildcard file name patterns as defined by FilenameUtils.wildcardMatchpublic boolean test(ObjectStreamClass objectStreamClass)
The reject list takes precedence over the accept list.
test in interface java.util.function.Predicate<ObjectStreamClass>objectStreamClass - The ObjectStreamClass to test.public boolean test(String name)
The reject list takes precedence over the accept list.
name - The class name to test.