public InputStream getStream ( ) { if ( stream != null ) { return stream ; } try { return new ByteArrayInputStream ( content . getBytes ( "utf-8" ) ) ; } catch ( final UnsupportedEncodingException e ) { throw new ApiException ( "UTF-8 encoding not supported" , e ) ; } }
Get response data as stream .