类 PatternMatchingCompositeLineTokenizer
- java.lang.Object
- org.springframework.batch.item.file.transform.PatternMatchingCompositeLineTokenizer
- 所有已实现的接口:
LineTokenizer
,org.springframework.beans.factory.InitializingBean
public class PatternMatchingCompositeLineTokenizer extends java.lang.Object implements LineTokenizer, org.springframework.beans.factory.InitializingBean
ALineTokenizer
implementation that stores a mapping of String patterns to delegateLineTokenizer
s. Each line tokenized will be checked to see if it matches a pattern. If the line matches a key in the map of delegates, then the corresponding delegateLineTokenizer
will be used. Patterns are sorted starting with the most specific, and the first match succeeds.- 作者:
- Ben Hale, Dan Garrette, Dave Syer
构造器概要
构造器 构造器 说明 PatternMatchingCompositeLineTokenizer()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
void
setTokenizers(java.util.Map<java.lang.String,LineTokenizer> tokenizers)
FieldSet
tokenize(java.lang.String line)
Yields the tokens resulting from the splitting of the suppliedline
.
构造器详细资料
PatternMatchingCompositeLineTokenizer
public PatternMatchingCompositeLineTokenizer()
方法详细资料
tokenize
public FieldSet tokenize(java.lang.String line)
从接口复制的说明:LineTokenizer
Yields the tokens resulting from the splitting of the suppliedline
.- 指定者:
tokenize
在接口中LineTokenizer
- 参数:
line
- the line to be tokenized (can benull
)- 返回:
- the resulting tokens
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception
setTokenizers
public void setTokenizers(java.util.Map<java.lang.String,LineTokenizer> tokenizers)