类 PatternMatchingCompositeLineTokenizer

  • 所有已实现的接口:
    LineTokenizer, org.springframework.beans.factory.InitializingBean

    public class PatternMatchingCompositeLineTokenizer
    extends java.lang.Object
    implements LineTokenizer, org.springframework.beans.factory.InitializingBean
    A LineTokenizer implementation that stores a mapping of String patterns to delegate LineTokenizers. 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 delegate LineTokenizer will be used. Patterns are sorted starting with the most specific, and the first match succeeds.
    作者:
    Ben Hale, Dan Garrette, Dave Syer
    • 方法详细资料

      • tokenize

        public FieldSet tokenize​(java.lang.String line)
        从接口复制的说明: LineTokenizer
        Yields the tokens resulting from the splitting of the supplied line.
        指定者:
        tokenize 在接口中 LineTokenizer
        参数:
        line - the line to be tokenized (can be null)
        返回:
        the resulting tokens
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception