Interface ClasspathItem

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
DirectoryClasspathItem, JarClasspathItem, JvmClasspathItem, MultipleItemsWrapperClasspathItem

public interface ClasspathItem extends AutoCloseable
One item in the classpath (e.g., a jar file).

FOR INTERNAL USE ONLY. THE API CAN CHANGE AT ANY TIME.

  • Method Details

    • isResourceExisting

      boolean isResourceExisting(String path)
      Test whether a resource exists.
      Parameters:
      path - Path to the resource
      Returns:
      true if the resource exists, false otherwise
    • isDirectory

      boolean isDirectory(String path)
      Test whether a path points to a directory.
      Parameters:
      path - Path to the resource
      Returns:
      true if the path points to a directory, false otherwise
    • getChildren

      List<String> getChildren(String path)
      Get the children of a path.
      Parameters:
      path - Path to the resource
      Returns:
      List of children
      Throws:
      IllegalArgumentException - If the path does not exist or is not a directory
    • getResourceAsStream

      InputStream getResourceAsStream(String path)
      Get an input stream for a resource.
      Parameters:
      path - Path to the resource
      Returns:
      Input stream for the resource
      Throws:
      IllegalArgumentException - If the resource does not exist or is a directory