public static Optional < String > getStringAsOptWithClasspath ( String classpath , String charsetName ) { return getResourceInputStreamAsOpt ( classpath ) . map ( resourceInputStream -> JMInputStream . toString ( resourceInputStream , charsetName ) ) ; }
Gets string as opt with classpath .