public byte [ ] forecastJsonBytes ( ForecastRequest request ) throws ForecastException { notNull ( "The ForecastRequest cannot be null." , request ) ; logger . log ( Level . FINE , "Executing Forecat request: {0}" , request ) ; try ( InputStream is = executeForecastRequest ( request ) ) { return IOUtil . readFully ( is ) ; } catch ( IOException e ) { throw new ForecastException ( "Forecast cannot be fetched." , e ) ; } }
Returns the forecast response as bytes .