public static String getStringWithClasspathOrFilePath ( String classpathOrFilePath , String charsetName ) { return getStringAsOptWithClasspath ( classpathOrFilePath , charsetName ) . orElseGet ( ( ) -> getStringAsOptWithFilePath ( classpathOrFilePath , charsetName ) . orElse ( null ) ) ; }
Gets string with classpath or file path .