Class QuoteHandler

All Implemented Interfaces:
Handler, PipelineComponent

public class QuoteHandler extends AbstractPipelineComponent
PipelineComponent that matches the CSV quote character.
Since:
2.2 (Sep 12, 2004)
Version:
$Revision$ $Date$
Author:
fede, Last changed by: $Author$
  • Field Details

    • QUOTE_CHAR

      public static final char QUOTE_CHAR
      The character that delimits a quoted CSV field.
      See Also:
  • Method Details

    • ACCEPT

      public static final PipelineComponent ACCEPT()
      Creates a handler that accepts the quote character.
      Returns:
      the new pipeline component.
    • IGNORE

      public static final PipelineComponent IGNORE()
      Creates a handler that ignores the quote character.
      Returns:
      the new pipeline component.
    • QUOTE

      public static final PipelineComponent QUOTE()
      Creates a handler that starts a quoted field on the quote character.
      Returns:
      the new pipeline component.
    • UNQUOTE

      public static final PipelineComponent UNQUOTE()
      Creates a handler that ends a quoted field on the quote 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.