public class FileFinder extends SimpleFileVisitor<Path>
Constructor and Description |
---|
FileFinder(Path rootPath) |
FileFinder(String rootDirectory) |
Modifier and Type | Method and Description |
---|---|
Path |
find(String fileName) |
String |
findAsRelativeUri(String fileName) |
protected boolean |
isMatch(Path path) |
protected void |
setFileNameToFind(String fileNameToFind) |
FileVisitResult |
visitFile(Path path,
BasicFileAttributes attributes) |
postVisitDirectory, preVisitDirectory, visitFileFailed
public FileFinder(String rootDirectory)
public FileFinder(Path rootPath)
protected void setFileNameToFind(String fileNameToFind)
public FileVisitResult visitFile(Path path, BasicFileAttributes attributes)
visitFile
in interface FileVisitor<Path>
visitFile
in class SimpleFileVisitor<Path>
protected boolean isMatch(Path path)
public Path find(String fileName) throws IOException
IOException
public String findAsRelativeUri(String fileName) throws IOException
IOException
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries