Dim DeviceMap As Map
DeviceMap = File.ReadMap(File.DirInternal, "devices.map")
For i = 0 To DeviceMap.Size - 1
Dim DSPData As typeDSP
DSPData.IP = DeviceMap.GetValueAt(i)
Log(GetType(DeviceMap.GetKeyAt(i)))
' results in "java.lang.String"
Dim tempByte As Byte
tempByte = DeviceMap.GetKeyAt(i)
Log(GetType(tempByte))
' results in "java.lang.Byte"
DSPs.Put(tempByte, DSPData)
' the following line leads to some confusion as the keys that
' was read in was of type "String" and other (further added) keys
' was of type "Byte" as desired, so some key comparison failed
' and I've got a map with two keys "0" and "0", one of type "Byte"
' and the other one of type "String"
' DSPs.Put(DeviceMap.GetKeyAt(i), DSPData)
Next