com.ibm.jzos.fields
Interface IntAccessor

All Superinterfaces:
Field
All Known Implementing Classes:
BinaryAsIntField, ExternalDecimalAsIntField, PackedDecimalAsIntField

public interface IntAccessor
extends Field

An interface which describes a Field which has int accessors.


Method Summary
 int getInt(byte[] buffer)
          Answer an int from the given byte array buffer, at the offset of this field.
 int getInt(byte[] buffer, int bufOffset)
          Answer an int from the given byte array buffer, at the bufOffset + offset of this field.
 boolean isSigned()
          Answer whether the field is signed
 void putInt(int value, byte[] buffer)
          Put an int into thegiven byte array buffer, at the offset of this field.
 void putInt(int value, byte[] buffer, int bufOffset)
          Put an int into thegiven byte array buffer, at the bufOffset + offset of this field.
 
Methods inherited from interface com.ibm.jzos.fields.Field
getByteLength, getOffset, setOffset
 

Method Detail

getInt

int getInt(byte[] buffer)
Answer an int from the given byte array buffer, at the offset of this field.

Parameters:
buffer - the byte array
Returns:
int

getInt

int getInt(byte[] buffer,
           int bufOffset)
Answer an int from the given byte array buffer, at the bufOffset + offset of this field.

Parameters:
buffer - the byte array
bufOffset - the additional offset into the byte array
Returns:
int

putInt

void putInt(int value,
            byte[] buffer)
            throws java.lang.IllegalArgumentException
Put an int into thegiven byte array buffer, at the offset of this field.

Parameters:
value - the int value
buffer - the byte array
Throws:
java.lang.IllegalArgumentException - if the value is out of range

putInt

void putInt(int value,
            byte[] buffer,
            int bufOffset)
            throws java.lang.IllegalArgumentException
Put an int into thegiven byte array buffer, at the bufOffset + offset of this field.

Parameters:
value - the int value
buffer - the byte array
bufOffset - the additional offset into the byte array
Throws:
java.lang.IllegalArgumentException - if the value is out of range

isSigned

boolean isSigned()
Answer whether the field is signed