Class PosFlags
java.lang.Object
org.jpos.iso.PosFlags
- Direct Known Subclasses:
PosCapability, PosDataCode
Base class for fixed-byte flag fields (e.g. POS data codes), exposing a
shared
setFlags(boolean, Flag...) helper that toggles bits within
a packed byte buffer.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSingle flag identified by its byte offset and bit-mask withingetBytes(). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPosFlags()Default constructor; no instance state to initialise. -
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]getBytes()Returns the underlying byte buffer holding the packed flags.protected voidsetFlags(boolean value, PosFlags.Flag... flags) Sets or unsets a set of flags according to valuetoString()
-
Constructor Details
-
PosFlags
protected PosFlags()Default constructor; no instance state to initialise.
-
-
Method Details
-
setFlags
Sets or unsets a set of flags according to value- Parameters:
value- if true flags are set, else unsetflags- flag set to set or unset
-
getBytes
Returns the underlying byte buffer holding the packed flags.- Returns:
- live byte array (callers may modify it)
-
toString
-