Class ResourceUtil


  • public final class ResourceUtil
    extends java.lang.Object
    Utilities for working with resources that can either be in the classpath or on the filesystem.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.InputStream openStream​(java.lang.String path)
      Opens a InputStream to the provided resource path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • openStream

        public static java.io.InputStream openStream​(java.lang.String path)
        Opens a InputStream to the provided resource path. If the path starts with 'classpath:', it will be interpreted as a resource, otherwise a filesystem path.