Index
All Classes and Interfaces|All Packages
A
- asBuffer() - Method in class io.smallrye.common.resource.MemoryResource
- asBuffer() - Method in class io.smallrye.common.resource.PathResource
- asBuffer() - Method in class io.smallrye.common.resource.Resource
-
Returns the bytes of this resource, as a read-only byte buffer.
- asString(Charset) - Method in class io.smallrye.common.resource.PathResource
- asString(Charset) - Method in class io.smallrye.common.resource.Resource
-
Returns the resource content as a string.
- available() - Method in class io.smallrye.common.resource.MemoryInputStream
B
- baseUrl() - Method in class io.smallrye.common.resource.JarFileResourceLoader
- baseUrl() - Method in class io.smallrye.common.resource.PathResourceLoader
- baseUrl() - Method in interface io.smallrye.common.resource.ResourceLoader
-
Returns the base URL for this loader.
- baseUrl() - Method in class io.smallrye.common.resource.URLResourceLoader
C
- canonicalizeRelativePath(String) - Static method in class io.smallrye.common.resource.ResourceUtils
-
An efficient relative path string canonicalizer which avoids copying and allocation to the maximum possible extent.
- close() - Method in class io.smallrye.common.resource.EmptyDirectoryStream
- close() - Method in class io.smallrye.common.resource.JarFileResourceLoader
- close() - Method in class io.smallrye.common.resource.MappedDirectoryStream
- close() - Method in class io.smallrye.common.resource.MemoryInputStream
- close() - Method in class io.smallrye.common.resource.PathResourceLoader
- close() - Method in interface io.smallrye.common.resource.ResourceLoader
-
Release any system resources or allocations associated with this resource loader.
- codeSigners() - Method in class io.smallrye.common.resource.JarFileResource
- codeSigners() - Method in class io.smallrye.common.resource.Resource
-
Returns the list of code signers for this resource.
- connect() - Method in class io.smallrye.common.resource.ResourceURLConnection
- copyTo(OutputStream) - Method in class io.smallrye.common.resource.MemoryResource
- copyTo(OutputStream) - Method in class io.smallrye.common.resource.Resource
-
Copy the bytes of this resource to the given destination.
- copyTo(WritableByteChannel) - Method in class io.smallrye.common.resource.MemoryResource
- copyTo(WritableByteChannel) - Method in class io.smallrye.common.resource.Resource
-
Copy the bytes of this resource to the given destination.
- copyTo(Path) - Method in class io.smallrye.common.resource.MemoryResource
- copyTo(Path) - Method in class io.smallrye.common.resource.Resource
-
Copy the bytes of this resource to the given destination.
E
- EMPTY - Static variable in interface io.smallrye.common.resource.ResourceLoader
-
A resource loader containing no resources.
- EmptyDirectoryStream<T> - Class in io.smallrye.common.resource
-
An empty directory stream.
F
- findResource(String) - Method in class io.smallrye.common.resource.JarFileResourceLoader
- findResource(String) - Method in class io.smallrye.common.resource.PathResourceLoader
- findResource(String) - Method in interface io.smallrye.common.resource.ResourceLoader
-
Find a resource from this loader.
- findResource(String) - Method in class io.smallrye.common.resource.URLResourceLoader
G
- getChildLoader(String) - Method in interface io.smallrye.common.resource.ResourceLoader
-
Get a child resource loader for the given child path.
- getContent() - Method in class io.smallrye.common.resource.ResourceURLConnection
- getContent(Class<?>...) - Method in class io.smallrye.common.resource.ResourceURLConnection
- getContentLengthLong() - Method in class io.smallrye.common.resource.ResourceURLConnection
- getContentType() - Method in class io.smallrye.common.resource.ResourceURLConnection
- getInputStream() - Method in class io.smallrye.common.resource.ResourceURLConnection
- getLastModified() - Method in class io.smallrye.common.resource.ResourceURLConnection
I
- instance() - Static method in class io.smallrye.common.resource.EmptyDirectoryStream
-
Returns the singleton instance.
- io.smallrye.common.resource - module io.smallrye.common.resource
-
Utilities for loading resources from memory, the filesystem, or JAR files.
- io.smallrye.common.resource - package io.smallrye.common.resource
- isDirectory() - Method in class io.smallrye.common.resource.JarFileResource
- isDirectory() - Method in class io.smallrye.common.resource.PathResource
- isDirectory() - Method in class io.smallrye.common.resource.Resource
-
Returns true if this resource represents a directory, or false otherwise.
- iterator() - Method in class io.smallrye.common.resource.EmptyDirectoryStream
- iterator() - Method in class io.smallrye.common.resource.MappedDirectoryStream
J
- JarFileResource - Class in io.smallrye.common.resource
-
A resource representing an entry in a JAR file.
- JarFileResourceLoader - Class in io.smallrye.common.resource
-
A resource loader which corresponds to a JAR file.
- JarFileResourceLoader(Resource) - Constructor for class io.smallrye.common.resource.JarFileResourceLoader
-
Construct a new instance from a JAR file contained within a resource.
- JarFileResourceLoader(Path) - Constructor for class io.smallrye.common.resource.JarFileResourceLoader
-
Construct a new instance.
M
- manifest() - Method in class io.smallrye.common.resource.JarFileResourceLoader
- manifest() - Method in interface io.smallrye.common.resource.ResourceLoader
-
Get the manifest for this resource loader, if any.
- MappedDirectoryStream<T,
R> - Class in io.smallrye.common.resource -
A directory stream to map one kind of entry to another.
- MappedDirectoryStream(DirectoryStream<T>, Function<T, R>) - Constructor for class io.smallrye.common.resource.MappedDirectoryStream
-
Construct a new instance.
- mark(int) - Method in class io.smallrye.common.resource.MemoryInputStream
- markSupported() - Method in class io.smallrye.common.resource.MemoryInputStream
- MemoryInputStream - Class in io.smallrye.common.resource
-
An input stream over a segment of memory.
- MemoryInputStream(byte[]) - Constructor for class io.smallrye.common.resource.MemoryInputStream
-
Construct a new instance for a byte array.
- MemoryInputStream(ByteBuffer) - Constructor for class io.smallrye.common.resource.MemoryInputStream
-
Construct a new instance for a byte buffer.
- MemoryResource - Class in io.smallrye.common.resource
-
An in-memory resource.
- MemoryResource(String, byte[]) - Constructor for class io.smallrye.common.resource.MemoryResource
-
Construct a new instance for a byte array.
- MemoryResource(String, ByteBuffer) - Constructor for class io.smallrye.common.resource.MemoryResource
-
Construct a new instance.
- modifiedTime() - Method in class io.smallrye.common.resource.JarFileResource
- modifiedTime() - Method in class io.smallrye.common.resource.MemoryResource
- modifiedTime() - Method in class io.smallrye.common.resource.PathResource
- modifiedTime() - Method in class io.smallrye.common.resource.Resource
-
Returns the modification time of the resource, or
nullif the time is unknown. - modifiedTime() - Method in class io.smallrye.common.resource.URLResource
O
- openDirectoryStream() - Method in class io.smallrye.common.resource.JarFileResource
- openDirectoryStream() - Method in class io.smallrye.common.resource.PathResource
- openDirectoryStream() - Method in class io.smallrye.common.resource.Resource
-
Open a directory stream to read the contents of this directory.
- openStream() - Method in class io.smallrye.common.resource.JarFileResource
- openStream() - Method in class io.smallrye.common.resource.MemoryResource
- openStream() - Method in class io.smallrye.common.resource.PathResource
- openStream() - Method in class io.smallrye.common.resource.Resource
-
Open an input stream to read this resource.
- openStream() - Method in class io.smallrye.common.resource.URLResource
P
- path() - Method in class io.smallrye.common.resource.PathResource
-
Returns the path of this resource.
- pathName() - Method in class io.smallrye.common.resource.Resource
-
Returns the resource's relative path.
- PathResource - Class in io.smallrye.common.resource
-
A resource corresponding to a
Path. - PathResource(String, Path) - Constructor for class io.smallrye.common.resource.PathResource
-
Construct a new instance.
- PathResourceLoader - Class in io.smallrye.common.resource
-
A resource loader which loads resources from a base path.
- PathResourceLoader(FileSystem) - Constructor for class io.smallrye.common.resource.PathResourceLoader
-
Construct a new instance from a filesystem's root.
- PathResourceLoader(Path) - Constructor for class io.smallrye.common.resource.PathResourceLoader
-
Construct a new instance.
R
- read() - Method in class io.smallrye.common.resource.MemoryInputStream
- read(byte[], int, int) - Method in class io.smallrye.common.resource.MemoryInputStream
- readAllBytes() - Method in class io.smallrye.common.resource.MemoryInputStream
- readStream(Function<InputStream, R>) - Method in class io.smallrye.common.resource.Resource
-
Perform the given action on the input stream of this resource.
- release() - Method in interface io.smallrye.common.resource.ResourceLoader
-
Hint that this resource loader is unlikely to be used in the near future.
- reset() - Method in class io.smallrye.common.resource.MemoryInputStream
- resource() - Method in class io.smallrye.common.resource.ResourceURLConnection
-
Returns the resource associated with this connection (not
null). - Resource - Class in io.smallrye.common.resource
-
A handle to a loadable resource, which usually will come from a JAR or the filesystem.
- Resource(String) - Constructor for class io.smallrye.common.resource.Resource
-
Construct a new instance.
- ResourceLoader - Interface in io.smallrye.common.resource
-
A loader which can find resources by their path.
- ResourceURLConnection - Class in io.smallrye.common.resource
-
A URL connection backed by a resource.
- ResourceUtils - Class in io.smallrye.common.resource
-
Miscellaneous resource-related utilities.
S
- size() - Method in class io.smallrye.common.resource.JarFileResource
- size() - Method in class io.smallrye.common.resource.MemoryResource
- size() - Method in class io.smallrye.common.resource.PathResource
- size() - Method in class io.smallrye.common.resource.Resource
-
Returns the size of the resource, or
-1if the size is not known. - size() - Method in class io.smallrye.common.resource.URLResource
- skip(long) - Method in class io.smallrye.common.resource.MemoryInputStream
T
- transferTo(OutputStream) - Method in class io.smallrye.common.resource.MemoryInputStream
U
- url() - Method in class io.smallrye.common.resource.JarFileResource
- url() - Method in class io.smallrye.common.resource.MemoryResource
- url() - Method in class io.smallrye.common.resource.PathResource
- url() - Method in class io.smallrye.common.resource.Resource
-
Returns the resource URL (not
null). - url() - Method in class io.smallrye.common.resource.URLResource
- URLResource - Class in io.smallrye.common.resource
-
A resource backed by a connection to a URL.
- URLResource(String, URL) - Constructor for class io.smallrye.common.resource.URLResource
-
Construct a new instance for a URL.
- URLResource(String, URLConnection) - Constructor for class io.smallrye.common.resource.URLResource
-
Construct a new instance.
- URLResource(JarURLConnection) - Constructor for class io.smallrye.common.resource.URLResource
-
Construct a new instance for a JAR URL connection.
- URLResourceLoader - Class in io.smallrye.common.resource
-
A resource loader for a URL base.
- URLResourceLoader(URL) - Constructor for class io.smallrye.common.resource.URLResourceLoader
-
Construct a new instance.
All Classes and Interfaces|All Packages