public int getShort(Integer id, Integer type)
   {
      int result = 0;

      Integer offset = m_meta.getOffset(id, type);

      if (offset != null)
      {
         byte[] value = m_map.get(offset);

         if (value != null && value.length >= 2)
         {
            result = MPPUtility.getShort(value, 0);
         }
      }

      return (result);
   }
public int getShort ( Integer id , Integer type ) { int result = 0 ; Integer offset = m_meta . getOffset ( id , type ) ; if ( offset != null ) { byte [ ] value = m_map . get ( offset ) ; if ( value != null && value . length >= 2 ) { result = MPPUtility . getShort ( value , 0 ) ; } } return ( result ) ; }
This method retrieves an integer of the specified type,
belonging to the item with the specified unique ID.

@param id unique ID of entity to which this data belongs
@param type data type identifier
@return required integer data