Package org.apache.tomcat.util.file
Class ConfigurationSource.Resource
- java.lang.Object
-
- org.apache.tomcat.util.file.ConfigurationSource.Resource
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing interface:
- ConfigurationSource
public static class ConfigurationSource.Resource extends java.lang.Object implements java.lang.AutoCloseableRepresents a resource: a stream to the resource associated with its URI.
-
-
Constructor Summary
Constructors Constructor Description Resource(java.io.InputStream inputStream, java.net.URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.InputStreamgetInputStream()longgetLastModified()java.net.URIgetURI()
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
-
getURI
public java.net.URI getURI()
-
getLastModified
public long getLastModified() throws java.net.MalformedURLException, java.io.IOException- Throws:
java.net.MalformedURLExceptionjava.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-