| Modifier and Type | Field and Description |
|---|---|
| private static Class | collectorClass
Class<collector> collectorClass = Class.forName("java.util.stream.Collector"); |
| private static Object | collectorsToList
Collector<object, ?, list |
| private final AutoCloseable | moduleReader
The module reader. |
| private ReflectionUtils |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public URI | |
| public List | Returns: A list of the paths of resources in the module.Get the list of resources accessible to a ModuleReader. |
| public InputStream | Returns: AnInputStream for the content of the resource.The path to the resource to open. path)Use the proxied ModuleReader to open the named resource as an InputStream. |
| public ByteBuffer | Returns: AByteBuffer for the content of the resource.The path to the resource to open. path)Use the proxied ModuleReader to open the named resource as a ByteBuffer. |
| public void | release(final ByteBuffer
The byteBuffer)ByteBuffer to release.Release a |
| collectorClass | back to summary |
|---|---|
| private static Class<?> collectorClass Class | |
| collectorsToList | back to summary |
|---|---|
| private static Object collectorsToList Collector | |
| moduleReader | back to summary |
|---|---|
| private final AutoCloseable moduleReader The module reader. | |
| reflectionUtils | back to summary |
|---|---|
| private ReflectionUtils reflectionUtils | |
| ModuleReaderProxy | back to summary |
|---|---|
| pack-priv ModuleReaderProxy(final ModuleRef moduleRef) throws IOException Constructor.
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Calls ModuleReader#close().
| |
| find | back to summary |
|---|---|
| public URI find(final String path) Use the proxied ModuleReader to find the named resource as a URI.
| |
| list | back to summary |
|---|---|
| public List Get the list of resources accessible to a ModuleReader. From the documentation for ModuleReader#list(): "Whether the stream of elements includes names corresponding to directories in the module is module reader specific. In lazy implementations then an IOException may be thrown when using the stream to list the module contents. If this occurs then the IOException will be wrapped in an java.io.UncheckedIOException and thrown from the method that caused the access to be attempted. SecurityException may also be thrown when using the stream to list the module contents and access is denied by the security manager."
| |
| open | back to summary |
|---|---|
| public InputStream open(final String path) throws SecurityException Use the proxied ModuleReader to open the named resource as an InputStream.
| |
| read | back to summary |
|---|---|
| public ByteBuffer read(final String path) throws SecurityException, OutOfMemoryError Use the proxied ModuleReader to open the named resource as a ByteBuffer. Call
| |
| release | back to summary |
|---|---|
| public void release(final ByteBuffer byteBuffer) Release a
| |