Class AllHandler

All Implemented Interfaces:
Handler, PipelineComponent

public class AllHandler extends AbstractPipelineComponent
PipelineComponent that matches any character, used as the basis for catch-all accept/ignore handlers.
Since:
2.2 (Sep 12, 2004)
Version:
$Revision$ $Date$
Author:
fede, Last changed by: $Author$
  • Method Details

    • ACCEPT

      public static final PipelineComponent ACCEPT()
      Creates a handler that accepts every character it is given.
      Returns:
      a new accept-all pipeline component.
    • IGNORE

      public static final PipelineComponent IGNORE()
      Creates a handler that ignores every character it is given.
      Returns:
      a new ignore-all pipeline component.
    • canHandle

      public boolean canHandle(char c) throws IllegalInputCharacterException
      Description copied from interface: Handler
      Determines whether this handler can handle the given character.
      Parameters:
      c - the character to check.
      Returns:
      true if this handler can handle the character.
      Throws:
      IllegalInputCharacterException - if the character is not valid in the current context.