- java.lang.Object
-
- com.ibm.jzos.fields.ExternalDecimalAsIntField
-
- com.ibm.jzos.fields.daa.ZonedExternalTrailingSignedIntField
-
- All Implemented Interfaces:
Field
,IntAccessor
- Direct Known Subclasses:
ZonedExternalTrailingSignedIntP1Field
,ZonedExternalTrailingSignedIntP2Field
,ZonedExternalTrailingSignedIntP3Field
,ZonedExternalTrailingSignedIntP4Field
,ZonedExternalTrailingSignedIntP5Field
,ZonedExternalTrailingSignedIntP6Field
,ZonedExternalTrailingSignedIntP7Field
,ZonedExternalTrailingSignedIntP8Field
,ZonedExternalTrailingSignedIntP9Field
public class ZonedExternalTrailingSignedIntField extends ExternalDecimalAsIntField
-
-
Constructor Summary
Constructors Constructor Description ZonedExternalTrailingSignedIntField(int offset, int precision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt(byte[] buffer)
Answer an int value from the given byte array buffer, at the offset of this field.int
getInt(byte[] buffer, int bufOffset)
Answer an int value from the given byte array buffer, at the bufOffset + offset of this field.void
putInt(int value, byte[] buffer)
Put an int value into the given byte array buffer, at the offset of this field.void
putInt(int value, byte[] buffer, int bufOffset)
Put an int value into the given byte array buffer, at the bufOffset + offset of this field.-
Methods inherited from class com.ibm.jzos.fields.ExternalDecimalAsIntField
equals, getByteLength, getLength, getOffset, getPrecision, isBlankWhenZero, isSigned, isSignExternal, isSignTrailing, setOffset
-
-
-
-
Method Detail
-
getInt
public int getInt(byte[] buffer, int bufOffset)
Description copied from class:ExternalDecimalAsIntField
Answer an int value from the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
getInt
in interfaceIntAccessor
- Overrides:
getInt
in classExternalDecimalAsIntField
- Parameters:
buffer
- the byte arraybufOffset
- the additional offset into the byte array- Returns:
- int
-
getInt
public int getInt(byte[] buffer)
Description copied from class:ExternalDecimalAsIntField
Answer an int value from the given byte array buffer, at the offset of this field.- Specified by:
getInt
in interfaceIntAccessor
- Overrides:
getInt
in classExternalDecimalAsIntField
- Parameters:
buffer
- the byte array- Returns:
- int
-
putInt
public void putInt(int value, byte[] buffer, int bufOffset) throws java.lang.IllegalArgumentException
Description copied from class:ExternalDecimalAsIntField
Put an int value into the given byte array buffer, at the bufOffset + offset of this field.- Specified by:
putInt
in interfaceIntAccessor
- Overrides:
putInt
in classExternalDecimalAsIntField
- Parameters:
value
- the int valuebuffer
- the byte arraybufOffset
- the additional offset into the byte array- Throws:
java.lang.IllegalArgumentException
- if the value is out of range
-
putInt
public void putInt(int value, byte[] buffer) throws java.lang.IllegalArgumentException
Description copied from class:ExternalDecimalAsIntField
Put an int value into the given byte array buffer, at the offset of this field.- Specified by:
putInt
in interfaceIntAccessor
- Overrides:
putInt
in classExternalDecimalAsIntField
- Parameters:
value
- the signed int valuebuffer
- the byte array- Throws:
java.lang.IllegalArgumentException
- if the value is out of range
-
-