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 ResourceClassfile. classfileResourceThe classfile resource.protected ResourceClassInfo. classfileResourceTheResourcefor the classfile of this class.private ResourceScanner.ClassfileScanWorkUnit. classfileResourceThe classfile resource.Fields in io.github.classgraph with type parameters of type Resource Modifier and Type Field Description protected java.util.List<Resource>ClasspathElement. acceptedClassfileResourcesThe list of all classfiles found within this classpath element that were accepted and not rejected.protected java.util.List<Resource>ClasspathElement. acceptedResourcesResources found within this classpath element that were accepted and not rejected.private java.util.concurrent.ConcurrentHashMap<java.lang.String,Resource>ClasspathElementZip. relativePathToResourceA map from relative path toResourcefor non-rejected zip entries.Methods in io.github.classgraph that return Resource Modifier and Type Method Description ResourceClassInfo. getResource()TheResourcefor the classfile of this class.(package private) abstract ResourceClasspathElement. getResource(java.lang.String relativePath)Get theResourcefor a given relative path.(package private) ResourceClasspathElementDir. getResource(java.lang.String relativePath)Get theResourcefor a given relative path.(package private) ResourceClasspathElementModule. getResource(java.lang.String relativePath)Get theResourcefor a given relative path.(package private) ResourceClasspathElementZip. getResource(java.lang.String relativePath)Get theResourcefor a given relative path.private ResourceClasspathElementDir. newResource(java.nio.file.Path resourcePath, java.nio.file.attribute.BasicFileAttributes attributes)Create a newResourceobject for a resource or classfile discovered while scanning paths.private ResourceClasspathElementModule. newResource(java.lang.String resourcePath)Create a newResourceobject for a resource or classfile discovered while scanning paths.private ResourceClasspathElementZip. newResource(FastZipEntry zipEntry, java.lang.String pathRelativeToPackageRoot)Create a newResourceobject for a resource or classfile discovered while scanning paths.Methods in io.github.classgraph with parameters of type Resource Modifier and Type Method Description voidResourceList.ByteArrayConsumer. accept(Resource resource, byte[] byteArray)Consume the complete content of aResourceas a byte array.voidResourceList.ByteArrayConsumerThrowsIOException. accept(Resource resource, byte[] byteArray)Consume the complete content of aResourceas a byte array, possibly throwingIOException.voidResourceList.ByteBufferConsumer. accept(Resource resource, java.nio.ByteBuffer byteBuffer)voidResourceList.ByteBufferConsumerThrowsIOException. accept(Resource resource, java.nio.ByteBuffer byteBuffer)Consume the complete content of aResourceas a byte array.voidResourceList.InputStreamConsumer. accept(Resource resource, java.io.InputStream inputStream)Consume aResourceas anInputStream.voidResourceList.InputStreamConsumerThrowsIOException. accept(Resource resource, java.io.InputStream inputStream)Consume the complete content of aResourceas a byte array, possibly throwingIOException.booleanResourceList.ResourceFilter. accept(Resource resource)Whether or not to allow aResourcelist item through the filter.protected voidClasspathElement. addAcceptedResource(Resource resource, ScanSpec.ScanSpecPathMatch parentMatchStatus, boolean isClassfileOnly, LogNode log)Add a resource discovered during the scan.(package private) static ClassInfoClassInfo. 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).intResource. 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 ofResourceobjects. -
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.InputStreamSlice. open(Resource resourceToClose)Open thisSliceas 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 ResourceClassfileReader. resourceToCloseThe 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.
-