public class FontFileFinder
extends org.apache.commons.io.DirectoryWalker
implements org.apache.fop.fonts.autodetect.FontFinder
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_DEPTH_LIMIT
default depth limit of recursion when searching for font files
|
| 构造器和说明 |
|---|
FontFileFinder(org.apache.fop.fonts.FontEventListener listener)
Default constructor
|
FontFileFinder(int depthLimit,
org.apache.fop.fonts.FontEventListener listener)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<URL> |
find()
Automagically finds a list of font files on local system
|
List<URL> |
find(String dir)
Searches a given directory for font files
|
protected static org.apache.commons.io.filefilter.IOFileFilter |
getDirectoryFilter()
Font directory filter.
|
protected static org.apache.commons.io.filefilter.IOFileFilter |
getFileFilter()
Font file filter.
|
protected boolean |
handleDirectory(File directory,
int depth,
Collection results) |
protected void |
handleDirectoryEnd(File directory,
int depth,
Collection results) |
protected void |
handleFile(File file,
int depth,
Collection results) |
public static final int DEFAULT_DEPTH_LIMIT
public FontFileFinder(org.apache.fop.fonts.FontEventListener listener)
listener - for throwing font related eventspublic FontFileFinder(int depthLimit,
org.apache.fop.fonts.FontEventListener listener)
depthLimit - recursion depth limitlistener - for throwing font related eventsprotected static org.apache.commons.io.filefilter.IOFileFilter getDirectoryFilter()
protected static org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
protected boolean handleDirectory(File directory, int depth, Collection results)
handleDirectory 在类中 org.apache.commons.io.DirectoryWalkerdirectory - directory to handledepth - recursion depthresults - collectionprotected void handleFile(File file, int depth, Collection results)
handleFile 在类中 org.apache.commons.io.DirectoryWalkerfile - file to handledepth - recursion depthresults - collection
protected void handleDirectoryEnd(File directory, int depth, Collection results)
handleDirectoryEnd 在类中 org.apache.commons.io.DirectoryWalkerdirectory - the directory being processeddepth - the current directory levelresults - the collection of results objects
public List<URL> find() throws IOException
find 在接口中 org.apache.fop.fonts.autodetect.FontFinderIOException - io exception
public List<URL> find(String dir) throws IOException
dir - directory to searchIOException - thrown if an I/O exception of some sort has occurredCopyright © 2024. All rights reserved.