1 21 22 package org.dbunit.dataset.csv.handlers; 23 24 import org.dbunit.dataset.csv.IllegalInputCharacterException; 25 26 public class WhitespacesHandler extends AbstractPipelineComponent { 27 28 private WhitespacesHandler() {} 29 30 public static final PipelineComponent IGNORE () { 31 return createPipelineComponent(new WhitespacesHandler(), new IGNORE()); 32 } 33 34 public static final PipelineComponent ACCEPT () { 35 return createPipelineComponent(new WhitespacesHandler(), new ACCEPT()); 36 } 37 38 39 public boolean canHandle(char c) throws IllegalInputCharacterException { 40 return Character.isWhitespace(c) ? true : false; 41 } 42 43 } 44 45 | Popular Tags |