trovato la soluzione. Converto il token tramite Integer.parseInt() e lo gestisco tramite eccezione. grazie mille
Regole del Forum