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 File
classpathEltFile
long
inputStreamLength
ModuleRef
moduleRef
String
pathRelativeToClasspathElt
String
pathRelativeToClasspathPrefix
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClasspathResource(File classpathEltFile, ModuleRef moduleRef, String pathRelativeToClasspathElt, String pathRelativeToClasspathPrefix)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
close()
long
getInputStreamLength()
abstract InputStream
open()
void
processFileMatch(FileMatchProcessorAny fileMatchProcessor, LogNode log)
String
toString()
-
-
-
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()
-
-