Interface PathCharConstraint

All Known Implementing Classes:
BackslashPathSeparatorConstraint, BitSetPathCharConstraint

public interface PathCharConstraint
Validates that the characters in a filename meet a defined constraint
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(char c, String path)
    Validates that the characters in a filename meet a defined constraint
  • Method Details

    • apply

      void apply(char c, String path)
      Validates that the characters in a filename meet a defined constraint
      Parameters:
      c - the character to validate
      path - the path the character is part of. This is supplied for context and is not validated
      Throws:
      PathConstraintException - when the constraint is not met