Uses of Class
io.github.classgraph.Resource
Packages that use Resource
Package
Description
-
Uses of Resource in io.github.classgraph
Fields in io.github.classgraph declared as ResourceModifier and TypeFieldDescriptionprivate final Resource
Classfile.classfileResource
The classfile resource.protected Resource
ClassInfo.classfileResource
TheResource
for the classfile of this class.private final Resource
Scanner.ClassfileScanWorkUnit.classfileResource
The classfile resource.Fields in io.github.classgraph with type parameters of type ResourceModifier and TypeFieldDescriptionClasspathElement.acceptedClassfileResources
The list of all classfiles found within this classpath element that were accepted and not rejected.ClasspathElement.acceptedResources
Resources found within this classpath element that were accepted and not rejected.private final ConcurrentHashMap
<String, Resource> ClasspathElementZip.relativePathToResource
A map from relative path toResource
for non-rejected zip entries.Methods in io.github.classgraph that return ResourceModifier and TypeMethodDescriptionClassInfo.getResource()
TheResource
for the classfile of this class.(package private) abstract Resource
ClasspathElement.getResource
(String relativePath) Get theResource
for a given relative path.(package private) Resource
ClasspathElementDir.getResource
(String relativePath) Get theResource
for a given relative path.(package private) Resource
ClasspathElementModule.getResource
(String relativePath) Get theResource
for a given relative path.(package private) Resource
ClasspathElementZip.getResource
(String relativePath) Get theResource
for a given relative path.private Resource
ClasspathElementDir.newResource
(Path resourcePath, NestedJarHandler nestedJarHandler) Create a newResource
object for a resource or classfile discovered while scanning paths.private Resource
ClasspathElementModule.newResource
(String resourcePath) Create a newResource
object for a resource or classfile discovered while scanning paths.private Resource
ClasspathElementZip.newResource
(FastZipEntry zipEntry, String pathRelativeToPackageRoot) Create a newResource
object for a resource or classfile discovered while scanning paths.Methods in io.github.classgraph with parameters of type ResourceModifier and TypeMethodDescriptionvoid
Consume the complete content of aResource
as a byte array.void
Consume the complete content of aResource
as a byte array, possibly throwingIOException
.void
ResourceList.ByteBufferConsumer.accept
(Resource resource, ByteBuffer byteBuffer) void
ResourceList.ByteBufferConsumerThrowsIOException.accept
(Resource resource, ByteBuffer byteBuffer) Consume the complete content of aResource
as a byte array.void
ResourceList.InputStreamConsumer.accept
(Resource resource, InputStream inputStream) Consume aResource
as anInputStream
.void
ResourceList.InputStreamConsumerThrowsIOException.accept
(Resource resource, InputStream inputStream) Consume the complete content of aResource
as a byte array, possibly throwingIOException
.boolean
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
(String className, int classModifiers, boolean isExternalClass, Map<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
Compare to.Constructors in io.github.classgraph with parameters of type ResourceModifierConstructorDescription(package private)
Classfile
(ClasspathElement classpathElement, List<ClasspathElement> classpathOrder, Set<String> acceptedClassNamesFound, Set<String> classNamesScheduledForExtendedScanning, String relativePath, Resource classfileResource, boolean isExternalClass, ConcurrentHashMap<String, 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.(package private)
ClassfileScanWorkUnit
(ClasspathElement classpathElement, Resource classfileResource, boolean isExternalClass) Constructor.protected
Constructor.Constructor parameters in io.github.classgraph with type arguments of type ResourceModifierConstructorDescriptionResourceList
(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 -
Uses of Resource in nonapi.io.github.classgraph.fileslice.reader
Fields in nonapi.io.github.classgraph.fileslice.reader declared as ResourceModifier and TypeFieldDescriptionprivate Resource
ClassfileReader.resourceToClose
The underlying resource to close whenClassfileReader.close()
is called.Constructors in nonapi.io.github.classgraph.fileslice.reader with parameters of type ResourceModifierConstructorDescriptionClassfileReader
(InputStream inputStream, Resource resourceToClose) Constructor for reader of moduleInputStream
(which is not deflated).ClassfileReader
(Slice slice, Resource resourceToClose) Constructor.