Class PatternSanitizer

  • All Implemented Interfaces:
    Sanitizer

    public class PatternSanitizer
    extends Object
    Sanitizer subclass that replaces all instance of pattern with the replacement text.
    • Field Detail

      • filter

        protected org.jboss.vfs.VirtualFileFilter filter
    • Constructor Detail

      • PatternSanitizer

        public PatternSanitizer​(String pattern,
                                String replacement,
                                org.jboss.vfs.VirtualFileFilter filter)
                         throws Exception
        Throws:
        Exception
    • Method Detail

      • accepts

        public boolean accepts​(org.jboss.vfs.VirtualFile resource)
        returns whether or not a VirtualFile should be processed by this sanitizer.
        Specified by:
        accepts in interface Sanitizer
        Parameters:
        resource - VirtualFile resource to test
        Returns: