public static InputStreamResource buildInputStreamResourceFrom ( final String value , final String description ) { val reader = new StringReader ( value ) ; val is = new ReaderInputStream ( reader , StandardCharsets . UTF_8 ) ; return new InputStreamResource ( is , description ) ; }
Build input stream resource from string value .