Package io.ocfl.core.path.constraint
Interface PathCharConstraint
- All Known Implementing Classes:
BackslashPathSeparatorConstraint
,BitSetPathCharConstraint
public interface PathCharConstraint
Validates that the characters in a filename meet a defined constraint
-
Method Summary
-
Method Details
-
apply
Validates that the characters in a filename meet a defined constraint- Parameters:
c
- the character to validatepath
- the path the character is part of. This is supplied for context and is not validated- Throws:
PathConstraintException
- when the constraint is not met
-