public class DirectoryBasedClassFileInput extends java.lang.Object implements ClassFileInput
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectoryBasedClassFileInput.FileBasedClassFile |
classMatcher| Constructor and Description |
|---|
DirectoryBasedClassFileInput(java.nio.file.Path rootPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ClassFileEntry |
createEntryFromPath(java.nio.file.Path path) |
java.util.stream.Stream<ClassFileEntry> |
entries(java.util.function.Predicate<java.nio.file.Path> filter) |
java.nio.file.Path |
getRootPath()
Base path of this input.
|
public DirectoryBasedClassFileInput(@NonNull
java.nio.file.Path rootPath)
@NonNull public java.nio.file.Path getRootPath()
ClassFileInputgetRootPath in interface ClassFileInputpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException@NonNull public java.util.stream.Stream<ClassFileEntry> entries(java.util.function.Predicate<java.nio.file.Path> filter) throws java.io.IOException
entries in interface ClassFileInputStream for all the entries that satisfies the passed filter.java.io.IOException - if the jar/directory cannot be read correctly.@NonNull public ClassFileEntry createEntryFromPath(@NonNull java.nio.file.Path path)