return readXbmImage(result.xbmHeader, result.cParser);
}
private String randomName()
{
UUID uuid = UUID.randomUUID();
StringBuilder stringBuilder = new StringBuilder("a");
long bits = uuid.getMostSignificantBits();
// Long.toHexString() breaks for very big numbers
for (int i = 64 - 8; i >= 0; i -= 8)
stringBuilder.append(Integer.toHexString((int)((bits >> i) & 0xff)));
bits = uuid.getLeastSignificantBits();
for (int i = 64 - 8; i >= 0; i -= 8)
stringBuilder.append(Integer.toHexString((int)((bits >> i) & 0xff)));
return stringBuilder.toString();
}