String sContentValue = "1234567";
boolean bCheckResult = true;
/* Int */
try
{
Integer iCheckValue = Integer.parseInt(sContentValue);
if (iCheckValue instanceof Integer == false)
{
bCheckResult = false;
}
}
catch(NumberFormatException e)
{
bCheckResult = false;
}
/* Double */
try
{
Double dCheckValue = Double.parseDouble(sContentValue);
if (dCheckValue instanceof Double == false)
{
bCheckResult = false;
}
}
catch(NumberFormatException e)
{
bCheckResult = false;
}
/* String */if (sContentValue instanceof String == false)
{
bCheckResult = false;
}