Uses of Interface
io.karatelabs.common.Resource
Packages that use Resource
-
Uses of Resource in io.karatelabs.common
Classes in io.karatelabs.common that implement ResourceModifier and TypeClassDescriptionclassclassclassResource implementation for HTTP/HTTPS URLs.Methods in io.karatelabs.common that return ResourceModifier and TypeMethodDescriptionstatic ResourceResource.bytes(byte[] bytes) Creates an in-memory Resource from raw bytes (e.g. a captured image / binary blob).static ResourceResource.classpathWithRootFallback(String path, Path root) Resolves aclasspath:reference with a project-root fallback: the classloader lookup wins when it hits (the Java-project case, unchanged), but on a miss the stripped path is retried against the given root before failing.static ResourceResource.classpathWithRootFallback(String path, Path root, Path classpathRoot) classpathWithRootFallback(String, Path)where the fallback dir is separate from THE root — theboot.classpath(dir)case.static ResourceCreates an in-memory Resource for code embedded within another source file.static ResourceCreates a Resource from a URL.static ResourceCreates a Resource from a URL with custom root.static ResourceCreates a modern NIO Path-based Resource.static ResourceCreates a modern NIO Path-based Resource with custom root.static ResourceCreates a Path-based Resource carrying both THE root and theclasspath:-fallback dir declared byboot.classpath(dir), so every reference resolved through this resource (feature reads, config-eval) sees the same two anchors.PathResource.getParent()default ResourceResource.getParent()Returns the parent of this resource, or null if no parent exists.static Resourcepath(String)for a caller that is probing — looking for an optional file and expecting to be told "no".static Resourcestatic ResourceResource.path(String path, ClassLoader classLoader) Creates a Resource from a path string, with optional ClassLoader for classpath resources.static ResourceResolves a path reference against a project root — the one rule, from any door:classpath:is classloader-first then root-fallback,file:is the host machine, a leading/anchorsroot, and a bare ref is root-relative.static Resourcepath(String, Path)with a separateclasspath:-fallback dir, as declared byboot.classpath(dir)— for a project whose resources sit under a build layout (src/test/resources) while THE root stays the project dir.static Resourcestatic ResourceCreates an in-memory Resource with a custom root.Methods in io.karatelabs.common that return types with arguments of type ResourceModifier and TypeMethodDescriptionResource.scanClasspath(String classpathDir, String extension) Scans classpath directories for resources with the given extension.Resource.scanClasspath(String classpathDir, String extension, ClassLoader classLoader) Scans classpath directories for resources with the given extension.Resource.scanClasspath(String classpathDir, String extension, ClassLoader classLoader, Path root) Scans classpath directories for resources with the given extension.Methods in io.karatelabs.common with parameters of type ResourceModifier and TypeMethodDescriptionstatic ResourceCreates an in-memory Resource for code embedded within another source file.default StringResource.getRelativePathTo(Resource other) Computes the relative path from this resource to another resource. -
Uses of Resource in io.karatelabs.js
Methods in io.karatelabs.js with parameters of type Resource -
Uses of Resource in io.karatelabs.parser
Fields in io.karatelabs.parser declared as ResourceModifier and TypeFieldDescriptionprotected final ResourceBaseLexer.resourceprotected final ResourceBaseParser.resourcefinal ResourceTokenBuffer.resourceMethods in io.karatelabs.parser that return ResourceMethods in io.karatelabs.parser with parameters of type ResourceConstructors in io.karatelabs.parser with parameters of type Resource