public abstract class AbstractReader extends Object
Title: PlistReader AbstractReader
Description: Package to read and write PLIST files on OsX
Copyright: 2007, Gie Spaepen
Company: University of Antwerp
This abstract class can be used to parse a PLIST
file.
The main function is hence parse()
. That function needs a
specified file and a specified handler to function. These can be specified
using the constructor(s) or the other setting functions like
setFile
and setHandler
.
Modifier and Type | Field and Description |
---|---|
private URL |
DTDPath
Path to the internal DTD file
|
private File |
file
Holds the file to read, needs to be specified in the constructor or the
setFile function. |
Constructor and Description |
---|
AbstractReader()
Void constructor.
|
AbstractReader(File _file)
Preferred constructor.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile()
Get the file object
|
PlistProperties |
parse()
Parse a file using a SAX Parser
(
org.apache.xerces.parsers.SAXParser )
and a specific XML Handler. |
PlistProperties |
parse(File _file) |
void |
setFile(File _file)
Set a file to parse
|
private File file
setFile
function.setFile(File _file)
private URL DTDPath
public AbstractReader()
setFile(File _file)
public AbstractReader(File _file)
_file
- Filepublic void setFile(File _file)
_file
- Filepublic File getFile()
public PlistProperties parse() throws SAXException, IOException
org.apache.xerces.parsers.SAXParser
)
and a specific XML Handler.SAXException
IOException
PlistReaderException
ReaderXMLHandler
,
org.apache.xerces.parses.SAXParser
public PlistProperties parse(File _file) throws SAXException, IOException
SAXException
IOException