Class JRTResolver
java.lang.Object
net.covers1624.coffeegrinder.util.resolver.JRTResolver
- All Implemented Interfaces:
Closeable,AutoCloseable,Resolver
Uses the built-in dynamically loaded Java Run Time FS.
This FS loads itself _from_ the target Java Home, loading the JImage modules file or exploded directories.
Created by covers1624 on 11/20/25.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()net.covers1624.quack.collection.FastStream<String> Gets all the classes available from thisResolver.net.covers1624.quack.collection.FastStream<String> Gets all the non-class files available from thisResolver.byte @Nullable []getResource(String name) Gets the bytes for a given resource.booleanhasResource(String name) Checks if this resolver is capable of resolving the given resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.covers1624.coffeegrinder.util.resolver.Resolver
getClassBytes, hasClass
-
Constructor Details
-
JRTResolver
- Throws:
IOException
-
-
Method Details
-
getAllClasses
Description copied from interface:ResolverGets all the classes available from thisResolver.- Specified by:
getAllClassesin interfaceResolver- Returns:
- The classes.
-
getAllResources
Description copied from interface:ResolverGets all the non-class files available from thisResolver.- Specified by:
getAllResourcesin interfaceResolver- Returns:
- The non-class files.
-
getResource
Description copied from interface:ResolverGets the bytes for a given resource.- Specified by:
getResourcein interfaceResolver- Parameters:
name- The name of the input.- Returns:
- The bytes of the resource or literal null if no bytes were found.
- Throws:
IOException- If an error occurred whilst reading a file.- See Also:
-
hasResource
Description copied from interface:ResolverChecks if this resolver is capable of resolving the given resource.- Specified by:
hasResourcein interfaceResolver- Parameters:
name- The resource name.- Returns:
- If the resolver can resolve this class.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceResolver- Throws:
IOException
-