Class ResourcePath


  • public class ResourcePath
    extends java.lang.Object
    Represent a file search path, such as a classpath or sourcepath.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream findInPath​(java.lang.String resource)  
      static ResourcePath forFiles​(java.io.File[] files)  
      java.lang.String toString()
      Returns the path as a single string in which each file component is separates by File.pathSeparatorChar.
      java.net.URI[] toUriPath()  
      java.net.URL[] toUrlPath()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • forFiles

        public static ResourcePath forFiles​(java.io.File[] files)
      • toUriPath

        public java.net.URI[] toUriPath()
      • toUrlPath

        public java.net.URL[] toUrlPath()
                                 throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • findInPath

        public java.io.InputStream findInPath​(java.lang.String resource)
      • toString

        public java.lang.String toString()
        Returns the path as a single string in which each file component is separates by File.pathSeparatorChar.
        Overrides:
        toString in class java.lang.Object