org.bitbucket.openisoj.PadLeftSetAdjuster Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openisoj-core Show documentation
Show all versions of openisoj-core Show documentation
An extensible framework for creating ISO 8583 messages.
Ported from OpenIso.Net http://code.google.com/p/openiso8583net/
package org.bitbucket.openisoj;
public class PadLeftSetAdjuster extends Adjuster {
private int _length;
private char _padChar;
public PadLeftSetAdjuster(int length, char padChar) {
_length = length;
}
@Override
protected String set(String value) {
String val = value;
if (value == null)
val = "";
return Utils.padLeft(val, _length, _padChar);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy