最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Why is BeanIO Field.padding an integer? - Stack Overflow

programmeradmin0浏览0评论

I'm using Bean IO to parse/write some fixed length files, and I want to set the padding character used by a field.

The Bean IO docs mention a padding character that can be used to do this:

However, while the docs and examples refer to it as a "character" and use it as such, on the actual @Field annotation it's an int:

  • .html#padding()

I cannot find an explanation for this discrepancy, and I'm wondering if anyone can fill me in on what I'm missing here. Or, more importantly, how I pad with a character using the annotation-based implementation.

发布评论

评论列表(0)

  1. 暂无评论