public interface Resolver
extends java.io.Closeable
Created by covers1624 on 8/4/21.
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
static Resolver |
findResolver(java.nio.file.Path path)
Finds a resolver for the given file.
|
net.covers1624.quack.collection.FastStream<java.lang.String> |
getAllClasses()
Gets all the classes available from this
Resolver. |
net.covers1624.quack.collection.FastStream<java.lang.String> |
getAllResources()
Gets all the non-class files available from this
Resolver. |
default byte[] |
getClassBytes(java.lang.String name)
Gets the bytes for a given class.
|
byte[] |
getResource(java.lang.String name)
Gets the bytes for a given resource.
|
default boolean |
hasClass(java.lang.String name)
Checks if this resolver is capable of resolving the given class name.
|
boolean |
hasResource(java.lang.String name)
Checks if this resolver is capable of resolving the given resource.
|
net.covers1624.quack.collection.FastStream<java.lang.String> getAllClasses()
throws java.io.IOException
Resolver.java.io.IOExceptionnet.covers1624.quack.collection.FastStream<java.lang.String> getAllResources()
throws java.io.IOException
Resolver.java.io.IOExceptiondefault byte[] getClassBytes(java.lang.String name)
throws java.io.IOException
name - The class name.java.io.IOException - If an error occurred whilst reading a file.getAllClasses()default boolean hasClass(java.lang.String name)
name - The class name.byte[] getResource(java.lang.String name)
throws java.io.IOException
name - The name of the input.java.io.IOException - If an error occurred whilst reading a file.getAllResources()boolean hasResource(java.lang.String name)
name - The resource name.default void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException