Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Support fixed-length values #143

Open
redhead opened this issue Feb 16, 2017 · 1 comment
Open

Support fixed-length values #143

redhead opened this issue Feb 16, 2017 · 1 comment

Comments

@redhead
Copy link

redhead commented Feb 16, 2017

I didn't find if it is currently possible, but could we get support for fixed-length values? With possibility of left/right padding the value.

I don't know if there is some functionality for that already in Jackson, could not find anything. Or maybe it's as simple as providing it by a custom serializer for the field, I guess?

@cowtowncoder
Copy link
Member

There is no out-of-the-box support for that. If this would be for String values, one possibility would be to allow specification of pattern property for @JsonFormat annotation, to specify format to use with String.format(...), with String value itself as the only argument.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants