Spring Batch DelimitedLineTokenizer class quoteCharacter property behavior

前端 未结 1 673
故里飘歌
故里飘歌 2021-01-27 18:35

I have a item reader as below:




        
1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-27 19:00

    A string is intended to be quoted if it starts/ends with quote char. In your example:

    oneColumn|twoColumn|~three|Column~|fourColumn
    

    and you'll get three|Column You have to quote string if it contains a separator, space, newline or the quoting char itself; quoting char must be doubled if part of value(see here)

    0 讨论(0)
提交回复
热议问题