Class NoHandler

All Implemented Interfaces:
Handler, PipelineComponent

public class NoHandler extends AbstractPipelineComponent
Sentinel PipelineComponent placed at the end of a pipeline that rejects any character not handled by an earlier component.
Since:
2.2 (Sep 12, 2004)
Version:
$Revision$ $Date$
Author:
fede, Last changed by: $Author$
  • Method Details

    • IGNORE

      public static final PipelineComponent IGNORE()
      Creates a handler that rejects every character.
      Returns:
      the new 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.