public class IsoFieldHeaderFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static IsoFieldHeaderFormatter |
LENGTH_FIRST |
static IsoFieldHeaderFormatter |
TAG_FIRST |
Constructor and Description |
---|
IsoFieldHeaderFormatter(boolean tagFirst) |
Modifier and Type | Method and Description |
---|---|
byte[] |
format(Prefixer tagPrefixer,
Prefixer lengthPrefixer,
byte[] tagData,
byte[] lengthData) |
void |
format(Prefixer tagPrefixer,
Prefixer lengthPrefixer,
byte[] tagData,
byte[] lengthData,
byte[] destinationData) |
int |
getLengthIndex(Prefixer tagPrefixer) |
int |
getTagIndex(Prefixer lengthPrefixer) |
int |
getTotalLength(Prefixer tagPrefixer,
Prefixer prefixer) |
boolean |
isTagFirst() |
public static IsoFieldHeaderFormatter TAG_FIRST
public static IsoFieldHeaderFormatter LENGTH_FIRST
public boolean isTagFirst()
public byte[] format(Prefixer tagPrefixer, Prefixer lengthPrefixer, byte[] tagData, byte[] lengthData)
tagPrefixer
- the tag part prefixerlengthPrefixer
- the length part prefixertagData
- byte array containing the tag value byteslengthData
- byte array containing the length value bytespublic void format(Prefixer tagPrefixer, Prefixer lengthPrefixer, byte[] tagData, byte[] lengthData, byte[] destinationData)
public int getTagIndex(Prefixer lengthPrefixer)
public int getLengthIndex(Prefixer tagPrefixer)