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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(char c, String path)
Validates that the characters in a filename meet a defined constraint
-
-
-
Method Detail
-
apply
void apply(char c, String path)
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
-
-