String trickyMethod() throws IOException
{
   int result = readAnotherChar();
   if ( result < 0 ) throw new IOException( "bad data" );
   return result;
}