public class FontFileFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private FontDirFinder |
fontDirFinder |
private static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
FontFileFinder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
checkFontfile(java.io.File file)
Check if the given name belongs to a font file.
|
private FontDirFinder |
determineDirFinder() |
java.util.List<java.net.URI> |
find()
Automagically finds a list of font files on local system.
|
java.util.List<java.net.URI> |
find(java.lang.String dir)
Searches a given directory for font files.
|
private void |
walk(java.io.File directory,
java.util.List<java.net.URI> results)
walk down the directory tree and search for font files.
|
private static final org.apache.commons.logging.Log LOG
private FontDirFinder fontDirFinder
private FontDirFinder determineDirFinder()
public java.util.List<java.net.URI> find()
public java.util.List<java.net.URI> find(java.lang.String dir)
dir
- directory to searchprivate void walk(java.io.File directory, java.util.List<java.net.URI> results)
directory
- the directory to start atresults
- names of all found font filesprivate boolean checkFontfile(java.io.File file)
file
- the given file