JarResource (Apache Tomcat 7.0.104 API Documentation)

org.apache.jasper.compiler

## Interface JarResource

- All Known Implementing Classes:
    JarURLResource

      public interface JarResource

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `URL` | `getEntry(String name)`
    `JarFile` | `getJarFile()`
    `String` | `getUrl()`

- - ### Method Detail

    - #### getJarFile

          JarFile getJarFile()
                             throws IOException

      Returns:
        The JarFile for this resource. A new instance of JarFile should be returned on each call.
      Throws:
        `IOException` - If an I/O error occurs reading the JAR

    - #### getUrl

          String getUrl()

      Returns:
        The URL of this resource. May or may not point to the actual Jar file.

    - #### getEntry

          URL getEntry(String name)

      Parameters:
        `name` - Name of entry to return
      Returns:
        The URL for the entry within this resource.

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.