Interface URLClassPath.Entry

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Close the underlying resource.
      java.lang.String getURL()
      Get filename or URL as string.
      java.io.InputStream openStream​(java.lang.String resourceName)
      Open an input stream to read a resource in the codebase described by this classpath entry.
    • Method Detail

      • openStream

        java.io.InputStream openStream​(java.lang.String resourceName)
                                throws java.io.IOException
        Open an input stream to read a resource in the codebase described by this classpath entry.
        Parameters:
        resourceName - name of resource to load: e.g., "java/lang/Object.class"
        Returns:
        an InputStream, or null if the resource wasn't found
        Throws:
        java.io.IOException - if an I/O error occurs
      • getURL

        java.lang.String getURL()
        Get filename or URL as string.
      • close

        void close()
        Close the underlying resource.
        Specified by:
        close in interface java.lang.AutoCloseable