|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.io.DirectoryWalker
org.apache.fop.fonts.autodetect.FontFileFinder
Helps to autodetect/locate available operating system fonts.
| Nested Class Summary |
| Nested classes inherited from class org.apache.commons.io.DirectoryWalker |
org.apache.commons.io.DirectoryWalker.CancelException |
| Field Summary | |
static int |
DEFAULT_DEPTH_LIMIT
default depth limit of recursion when searching for font files |
| Constructor Summary | |
FontFileFinder()
Default constructor |
|
FontFileFinder(int depthLimit)
Constructor |
|
| Method Summary | |
java.util.List |
find()
Automagically finds a list of font files on local system |
java.util.List |
find(java.lang.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(java.io.File directory,
int depth,
java.util.Collection results)
|
protected void |
handleDirectoryEnd(java.io.File directory,
int depth,
java.util.Collection results)
|
protected void |
handleFile(java.io.File file,
int depth,
java.util.Collection results)
|
| Methods inherited from class org.apache.commons.io.DirectoryWalker |
checkIfCancelled, handleCancelled, handleDirectoryStart, handleEnd, handleIsCancelled, handleRestricted, handleStart, walk |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_DEPTH_LIMIT
| Constructor Detail |
public FontFileFinder()
public FontFileFinder(int depthLimit)
depthLimit - recursion depth limit| Method Detail |
protected static org.apache.commons.io.filefilter.IOFileFilter getDirectoryFilter()
protected static org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
protected boolean handleDirectory(java.io.File directory,
int depth,
java.util.Collection results)
directory - directory to handledepth - recursion depthresults - collection
protected void handleFile(java.io.File file,
int depth,
java.util.Collection results)
file - file to handledepth - recursion depthresults - collection
protected void handleDirectoryEnd(java.io.File directory,
int depth,
java.util.Collection results)
directory - the directory being processeddepth - the current directory levelresults - the collection of results objects
public java.util.List find()
throws java.io.IOException
find in interface FontFinderjava.io.IOException - io exception
In case of an I/O problem
public java.util.List find(java.lang.String dir)
throws java.io.IOException
dir - directory to search
java.io.IOException - io exception
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||