Class ClasspathResource
- java.lang.Object
-
- io.github.lukehutch.fastclasspathscanner.scanner.ClasspathResource
-
public abstract class ClasspathResource extends Object
The combination of a classpath element and a relative path within this classpath element.
-
-
Field Summary
Fields Modifier and Type Field Description FileclasspathEltFilelonginputStreamLengthModuleRefmoduleRefStringpathRelativeToClasspathEltStringpathRelativeToClasspathPrefix
-
Constructor Summary
Constructors Modifier Constructor Description protectedClasspathResource(File classpathEltFile, ModuleRef moduleRef, String pathRelativeToClasspathElt, String pathRelativeToClasspathPrefix)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclose()longgetInputStreamLength()abstract InputStreamopen()voidprocessFileMatch(FileMatchProcessorAny fileMatchProcessor, LogNode log)StringtoString()
-
-
-
Field Detail
-
classpathEltFile
public final File classpathEltFile
-
moduleRef
public final ModuleRef moduleRef
-
pathRelativeToClasspathElt
public final String pathRelativeToClasspathElt
-
pathRelativeToClasspathPrefix
public final String pathRelativeToClasspathPrefix
-
inputStreamLength
public long inputStreamLength
-
-
Method Detail
-
open
public abstract InputStream open() throws IOException
- Throws:
IOException
-
getInputStreamLength
public long getInputStreamLength()
-
processFileMatch
public void processFileMatch(FileMatchProcessorAny fileMatchProcessor, LogNode log) throws IOException
- Throws:
IOException
-
close
public abstract void close()
-
-