Uses of Class
io.github.classgraph.Resource
-
Packages that use Resource Package Description io.github.classgraph nonapi.io.github.classgraph.fileslice nonapi.io.github.classgraph.fileslice.reader -
-
Uses of Resource in io.github.classgraph
Fields in io.github.classgraph declared as Resource Modifier and Type Field Description private Resource
Classfile. classfileResource
The classfile resource.protected Resource
ClassInfo. classfileResource
TheResource
for the classfile of this class.private Resource
Scanner.ClassfileScanWorkUnit. classfileResource
The classfile resource.Fields in io.github.classgraph with type parameters of type Resource Modifier and Type Field Description protected java.util.List<Resource>
ClasspathElement. acceptedClassfileResources
The list of all classfiles found within this classpath element that were accepted and not rejected.protected java.util.List<Resource>
ClasspathElement. acceptedResources
Resources found within this classpath element that were accepted and not rejected.private java.util.concurrent.ConcurrentHashMap<java.lang.String,Resource>
ClasspathElementZip. relativePathToResource
A map from relative path toResource
for non-rejected zip entries.Methods in io.github.classgraph that return Resource Modifier and Type Method Description Resource
ClassInfo. getResource()
TheResource
for the classfile of this class.(package private) abstract Resource
ClasspathElement. getResource(java.lang.String relativePath)
Get theResource
for a given relative path.(package private) Resource
ClasspathElementDir. getResource(java.lang.String relativePath)
Get theResource
for a given relative path.(package private) Resource
ClasspathElementModule. getResource(java.lang.String relativePath)
Get theResource
for a given relative path.(package private) Resource
ClasspathElementZip. getResource(java.lang.String relativePath)
Get theResource
for a given relative path.private Resource
ClasspathElementDir. newResource(java.nio.file.Path resourcePath, NestedJarHandler nestedJarHandler)
Create a newResource
object for a resource or classfile discovered while scanning paths.private Resource
ClasspathElementModule. newResource(java.lang.String resourcePath)
Create a newResource
object for a resource or classfile discovered while scanning paths.private Resource
ClasspathElementZip. newResource(FastZipEntry zipEntry, java.lang.String pathRelativeToPackageRoot)
Create a newResource
object for a resource or classfile discovered while scanning paths.Methods in io.github.classgraph with parameters of type Resource Modifier and Type Method Description void
ResourceList.ByteArrayConsumer. accept(Resource resource, byte[] byteArray)
Consume the complete content of aResource
as a byte array.void
ResourceList.ByteArrayConsumerThrowsIOException. accept(Resource resource, byte[] byteArray)
Consume the complete content of aResource
as a byte array, possibly throwingIOException
.void
ResourceList.ByteBufferConsumer. accept(Resource resource, java.nio.ByteBuffer byteBuffer)
void
ResourceList.ByteBufferConsumerThrowsIOException. accept(Resource resource, java.nio.ByteBuffer byteBuffer)
Consume the complete content of aResource
as a byte array.void
ResourceList.InputStreamConsumer. accept(Resource resource, java.io.InputStream inputStream)
Consume aResource
as anInputStream
.void
ResourceList.InputStreamConsumerThrowsIOException. accept(Resource resource, java.io.InputStream inputStream)
Consume the complete content of aResource
as a byte array, possibly throwingIOException
.boolean
ResourceList.ResourceFilter. accept(Resource resource)
Whether or not to allow aResource
list item through the filter.protected void
ClasspathElement. addAcceptedResource(Resource resource, ScanSpec.ScanSpecPathMatch parentMatchStatus, boolean isClassfileOnly, LogNode log)
Add a resource discovered during the scan.(package private) static ClassInfo
ClassInfo. addScannedClass(java.lang.String className, int classModifiers, boolean isExternalClass, java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, ClasspathElement classpathElement, Resource classfileResource)
Add a class that has just been scanned (as opposed to just referenced by a scanned class).int
Resource. compareTo(Resource o)
Compare to.Constructors in io.github.classgraph with parameters of type Resource Constructor Description Classfile(ClasspathElement classpathElement, java.util.List<ClasspathElement> classpathOrder, java.util.Set<java.lang.String> acceptedClassNamesFound, java.util.Set<java.lang.String> classNamesScheduledForExtendedScanning, java.lang.String relativePath, Resource classfileResource, boolean isExternalClass, java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> stringInternMap, WorkQueue<Scanner.ClassfileScanWorkUnit> workQueue, ScanSpec scanSpec, LogNode log)
Directly examine contents of classfile binary header to determine annotations, implemented interfaces, the super-class etc.ClassfileScanWorkUnit(ClasspathElement classpathElement, Resource classfileResource, boolean isExternalClass)
Constructor.ClassInfo(java.lang.String name, int classModifiers, Resource classfileResource)
Constructor.Constructor parameters in io.github.classgraph with type arguments of type Resource Constructor Description ResourceList(java.util.Collection<Resource> resourceCollection)
Create a new modifiable emptyResourceList
, given an initial collection ofResource
objects. -
Uses of Resource in nonapi.io.github.classgraph.fileslice
Methods in nonapi.io.github.classgraph.fileslice with parameters of type Resource Modifier and Type Method Description java.io.InputStream
Slice. open(Resource resourceToClose)
Open thisSlice
as anInputStream
. -
Uses of Resource in nonapi.io.github.classgraph.fileslice.reader
Fields in nonapi.io.github.classgraph.fileslice.reader declared as Resource Modifier and Type Field Description private Resource
ClassfileReader. resourceToClose
The underlying resource to close whenClassfileReader.close()
is called.Constructors in nonapi.io.github.classgraph.fileslice.reader with parameters of type Resource Constructor Description ClassfileReader(java.io.InputStream inputStream, Resource resourceToClose)
Constructor for reader of moduleInputStream
(which is not deflated).ClassfileReader(Slice slice, Resource resourceToClose)
Constructor.
-