ConfigurationSource.Resource (Apache Tomcat 9.0.111 API Documentation)
Description: declaration: package: org.apache.tomcat.util.file, interface: ConfigurationSource, class: Resource

# Class ConfigurationSource.Resource

java.lang.Object
org.apache.tomcat.util.file.ConfigurationSource.Resource

All Implemented Interfaces:
  `AutoCloseable`

Enclosing interface:
  `ConfigurationSource`

public static class ConfigurationSource.Resource extends Object implements AutoCloseable
Represents a resource: a stream to the resource associated with its URI.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Resource(InputStream inputStream, URI uri)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `InputStream`
  `getInputStream()`
  `long`
  `getLastModified()`
  `URI`
  `getURI()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Resource

    public Resource(InputStream inputStream, URI uri)

- ## Method Details

  - ### getInputStream

    public InputStream getInputStream()

  - ### getURI

    public URI getURI()

  - ### getLastModified

    public long getLastModified() throws MalformedURLException, IOException
    Throws:
      `MalformedURLException`
      `IOException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Throws:
      `IOException`