private static int ReadOneByte( TextReader reader ) { int byteValue = reader.Read(); if ( byteValue == -1 ) { throw new RtfUnicodeEncodingException( Strings.UnexpectedEndOfFile ); } return byteValue; }