1 21 22 package org.dbunit.dataset.csv.handlers; 23 24 import org.dbunit.dataset.csv.IllegalInputCharacterException; 25 26 import java.util.LinkedList ; 27 28 public class UnquotedFieldAssembler extends AbstractPipelineComponent { 29 30 LinkedList addedComponents; 31 32 public UnquotedFieldAssembler() { 33 setAddedComponents(new LinkedList ()); 34 getPipeline().putFront(SeparatorHandler.ENDPIECE()); 35 getPipeline().putFront(IsAlnumHandler.QUOTE()); 36 getPipeline().putFront(WhitespacesHandler.IGNORE()); 37 } 38 39 private LinkedList getAddedComponents() { 40 return addedComponents; 41 } 42 43 private void setAddedComponents(LinkedList addedComponents) { 44 this.addedComponents = addedComponents; 45 } 46 47 public boolean canHandle(char c) throws IllegalInputCharacterException { 48 return true; 49 } 50 51 static protected class ASSEMBLE extends Helper { 52 void helpWith(char c) { 53 getHandler().getPipeline().thePieceIsDone(); 54 } 55 } 56 57 } 58 | Popular Tags |