Package org.daisy.braille.utils.pef
Class PEFBookLoader
- java.lang.Object
-
- org.daisy.braille.utils.pef.PEFBookLoader
-
public class PEFBookLoader extends Object
Provides a loader for PEFBooks that keeps serialized PEFBooks that can be loaded quickly when the source is unchanged.
-
-
Constructor Summary
Constructors Constructor Description PEFBookLoader()
Creates a newPEFBookLoader
with the default cache folder.PEFBookLoader(File dir)
Creates a newPEFBookLoader
with the specified cache folder.
-
-
-
Constructor Detail
-
PEFBookLoader
public PEFBookLoader()
Creates a newPEFBookLoader
with the default cache folder.
-
PEFBookLoader
public PEFBookLoader(File dir)
Creates a newPEFBookLoader
with the specified cache folder.- Parameters:
dir
- the cache folder
-
-
Method Detail
-
load
public PEFBook load(File f) throws XPathExpressionException, ParserConfigurationException, SAXException, IOException
Loads the specified file.- Parameters:
f
- the file to load- Returns:
- returns a
PEFBook
for the file - Throws:
XPathExpressionException
- if an exception occursParserConfigurationException
- if an exception occursSAXException
- if an exception occursIOException
- if an exception occurs
-
-