Module io.inverno.mod.base
Package io.inverno.mod.base.resource
package io.inverno.mod.base.resource
Classes and interfaces for accessing resources (file, zip, jar, classpath, module...).
-
ClassDescriptionBase implementation for
AsyncResource
.Thrown when the end of the file is reached when reading a resource.Base implementation forResource
.AbstractResourceProvider<A extends Resource>Base implementation forResourceProvider
.An async resource uses an executor service to be read and written asynchronously.AsyncResourceProvider<A extends AsyncResource>A resource provider providing async resources.AResource
implementation that identifies resources by a URI of the formclasspath:/path/to/resource
and looks up data on the classpath.Thrown when a read, write or delete operation is performed on closed resourceAResource
implementation that identifies resources by a URI of the formfile:/path/to/resource
and looks up data on the file system.A genericMediaTypeService
implementation.AResource
implementation that identifies resources by a URI of the formjar:file:/path/to/jar!
A collection of well known media types.A media type service provides methods to determine a media type based on a file name, a file extension, a path or a URI.AResource
implementation that identifies resources by a URI of the formmodule://[MODULE_NAME]/path/to/resource
ormodule:/path/to/resource
and looks up data from a module.AResource
implementation that identifies resources by a URI of the formresource:path/to/resource
and looks up data in a native image.Thrown when trying to read a resource that is not readable.Thrown when trying to write to a resource that is not writable.AResource
implementation that identifies resources by a path and looks up data on the file system.A resource represents an abstraction of an actual resource like a file, an entry in a zip/jar file, a on the classpath...Thrown to indicate an error in a resource related operation.ResourceProvider<A extends Resource>A resource provider is used to resolve some particular kinds of resources.Provides a unified access to resources, giving the ability to obtainResource
instances for various kind of resources.AResource
implementation that identifies resources by a URL that looks up data by opening aURLConnection
.AResource
implementation that identifies resources by a URI of the formzip:file:/path/to/zip!