buf.append(Integer.toHexString(0xFF & b).toUpperCase());
}
}
return buf.toString();
} else {
CommonArrayFS fs;
String[] fsvalues;
switch (arrayType) {
case LowLevelCAS.TYPE_CLASS_INTARRAY:
fs = new IntArrayFSImpl(addr, cas);
break;
case LowLevelCAS.TYPE_CLASS_FLOATARRAY:
fs = new FloatArrayFSImpl(addr, cas);
break;
case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:
fs = new BooleanArrayFSImpl(addr, cas);
break;
case LowLevelCAS.TYPE_CLASS_SHORTARRAY:
fs = new ShortArrayFSImpl(addr, cas);
break;
case LowLevelCAS.TYPE_CLASS_LONGARRAY:
fs = new LongArrayFSImpl(addr, cas);
break;
case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:
fs = new DoubleArrayFSImpl(addr, cas);
break;
default: {
fs = null;
}
}
if (arrayType == LowLevelCAS.TYPE_CLASS_STRINGARRAY) {
StringArrayFS strFS = new StringArrayFSImpl(addr, cas);
fsvalues = strFS.toArray();
} else {
fsvalues = fs.toStringArray();
}
for (int i = 0; i < fsvalues.length; i++) {
if (buf.length() > 0) {
buf.append(' ');