Class SeparatorHandler
java.lang.Object
org.dbunit.dataset.common.handlers.AbstractPipelineComponent
org.dbunit.dataset.common.handlers.SeparatorHandler
- All Implemented Interfaces:
Handler,PipelineComponent
PipelineComponent that matches the CSV field separator character.- Since:
- 2.2 (Sep 12, 2004)
- Version:
- $Revision$ $Date$
- Author:
- fede, Last changed by: $Author$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classHelper that ends the current field, notifying the pipeline the piece is done.Nested classes/interfaces inherited from class org.dbunit.dataset.common.handlers.AbstractPipelineComponent
AbstractPipelineComponent.ACCEPT, AbstractPipelineComponent.IGNORE -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charThe default CSV field separator character. -
Method Summary
Modifier and TypeMethodDescriptionstatic final PipelineComponentACCEPT()Creates a handler that accepts the separator character.booleancanHandle(char c) Determines whether this handler can handle the given character.static final PipelineComponentENDPIECE()Creates a handler that ends the current field on the separator character.static final PipelineComponentIGNORE()Creates a handler that ignores the separator character.Methods inherited from class org.dbunit.dataset.common.handlers.AbstractPipelineComponent
accept, allowForNoMoreInput, createPipelineComponent, getHelper, getPipeline, getPipelineConfig, getSuccessor, handle, noMoreInput, setPipeline, setSuccessor
-
Field Details
-
DEFAULT_SEPARATOR_CHAR
public static final char DEFAULT_SEPARATOR_CHARThe default CSV field separator character.- See Also:
-
-
Method Details
-
ACCEPT
Creates a handler that accepts the separator character.- Returns:
- the new pipeline component.
-
IGNORE
Creates a handler that ignores the separator character.- Returns:
- the new pipeline component.
-
ENDPIECE
Creates a handler that ends the current field on the separator character.- Returns:
- the new pipeline component.
-
canHandle
Description copied from interface:HandlerDetermines whether this handler can handle the given character.- Parameters:
c- the character to check.- Returns:
trueif this handler can handle the character.- Throws:
IllegalInputCharacterException- if the character is not valid in the current context.
-