- java.lang.Object
-
- com.ibm.jzos.fields.BinaryAsLongField
-
- com.ibm.jzos.fields.daa.BinarySignedLongField
-
- All Implemented Interfaces:
Field
,LongAccessor
- Direct Known Subclasses:
BinarySignedLongL4Field
,BinarySignedLongL5Field
,BinarySignedLongL6Field
,BinarySignedLongL7Field
,BinarySignedLongL8Field
public class BinarySignedLongField extends BinaryAsLongField
-
-
Field Summary
-
Fields inherited from class com.ibm.jzos.fields.BinaryAsLongField
DEFAULT_FIELD_WIDTH, MAX_FIELD_WIDTH, SIGNED_MAX_LEN1_VAL, SIGNED_MAX_LEN2_VAL, SIGNED_MAX_LEN3_VAL, SIGNED_MAX_LEN4_VAL, SIGNED_MAX_LEN5_VAL, SIGNED_MAX_LEN6_VAL, SIGNED_MAX_LEN7_VAL, SIGNED_MAX_LEN8_VAL, SIGNED_MIN_LEN1_VAL, SIGNED_MIN_LEN2_VAL, SIGNED_MIN_LEN3_VAL, SIGNED_MIN_LEN4_VAL, SIGNED_MIN_LEN5_VAL, SIGNED_MIN_LEN6_VAL, SIGNED_MIN_LEN7_VAL, SIGNED_MIN_LEN8_VAL, UNSIGNED_MAX_LEN1_VAL, UNSIGNED_MAX_LEN2_VAL, UNSIGNED_MAX_LEN3_VAL, UNSIGNED_MAX_LEN4_VAL, UNSIGNED_MAX_LEN5_VAL, UNSIGNED_MAX_LEN6_VAL, UNSIGNED_MAX_LEN7_VAL, UNSIGNED_MAX_LEN8_VAL
-
-
Constructor Summary
Constructors Constructor Description BinarySignedLongField(int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLong(byte[] buffer)
Answer a long from the given byte array buffer, at the offset of this field.long
getLong(byte[] buffer, int bufOffset)
Answer a long from the given byte array buffer, at the bufOffset + offset of this field.void
putLong(long value, byte[] buffer)
Put a signed long into thegiven byte array buffer, at the bufOffset of this field.void
putLong(long value, byte[] buffer, int bufOffset)
Put a signed long into thegiven byte array buffer, at the bufOffset + offset of this field.void
setSigned(boolean signed)
-
Methods inherited from class com.ibm.jzos.fields.BinaryAsLongField
equals, getByteLength, getOffset, isSigned, setOffset
-
-
-
-
Method Detail
-
setSigned
public void setSigned(boolean signed)
- Overrides:
setSigned
in classBinaryAsLongField
- See Also:
BinaryAsLongField.isSigned()
-
getLong
public long getLong(byte[] buffer, int bufOffset)
Description copied from class:BinaryAsLongField
Answer a long from the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
getLong
in interfaceLongAccessor
- Overrides:
getLong
in classBinaryAsLongField
- Parameters:
buffer
- the byte arraybufOffset
- the additional offset into the byte array- Returns:
- long
-
getLong
public long getLong(byte[] buffer)
Description copied from class:BinaryAsLongField
Answer a long from the given byte array buffer, at the offset of this field.- Specified by:
getLong
in interfaceLongAccessor
- Overrides:
getLong
in classBinaryAsLongField
- Parameters:
buffer
- the byte array- Returns:
- long
-
putLong
public void putLong(long value, byte[] buffer, int bufOffset) throws java.lang.IllegalArgumentException
Description copied from class:BinaryAsLongField
Put a signed long into thegiven byte array buffer, at the bufOffset + offset of this field.- Specified by:
putLong
in interfaceLongAccessor
- Overrides:
putLong
in classBinaryAsLongField
- Parameters:
value
- the signed long valuebuffer
- the byte arraybufOffset
- the additional offset into the byte array- Throws:
java.lang.IllegalArgumentException
- if the value is out of range
-
putLong
public void putLong(long value, byte[] buffer) throws java.lang.IllegalArgumentException
Description copied from class:BinaryAsLongField
Put a signed long into thegiven byte array buffer, at the bufOffset of this field.- Specified by:
putLong
in interfaceLongAccessor
- Overrides:
putLong
in classBinaryAsLongField
- Parameters:
value
- the signed long valuebuffer
- the byte array- Throws:
java.lang.IllegalArgumentException
- if the value is out of range
-
-