public String simpleGet ( String url ) throws IOException { final AtomicReference < String > str = new AtomicReference <> ( ) ; simpleGetInternal ( url , inputStream -> { try { str . set ( IOUtils . toString ( inputStream , "UTF-8" ) ) ; } catch ( IOException e ) { throw new IllegalStateException ( e ) ; } } , null ) ; return str . get ( ) ; }
Perform a simple get - operation and return the resulting String .