How to read integers

How would you read integers using this
while (!Serial.available()) {
}

While there is nothing to read, it is pointless to discuss whether that nothing is a representation of an integer, a float, or an image of Frosty the snowman.