when working with HBase Java API, I have a line of the code as below: 

```
byte[] value = scanner.next().getValue(Bytes.toBytes(family), Bytes.toBytes(qualifier));

```

Assume I don't know if it's a Int or String type for this value, **which should I use between `Byte.toInt(value)` and `Byte.toString(value)` to print the value correctly**? 

This is not a really HBase/Hadoop question, and rather a Java one, but I googled and can't find a way to get it. Is it possible to know it? 

In another direction, from the HBase Java API, how can I know the data type for a given value stored in a family:qualifier? 

Thanks!