|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deepfs.fsml.parsers.XMLParser
public final class XMLParser
Parser for XML files.
| Constructor Summary | |
|---|---|
XMLParser()
|
|
| Method Summary | |
|---|---|
boolean |
check(DeepFile df)
Checks if there is a File in correct format and can be read by the parser. |
void |
extract(DeepFile deepFile)
Extracts metadata and file contents. |
Data |
parse(BufferedFileChannel f,
Prop prop)
Checks if the document is well-formed and returns the corresponding main memory database. |
void |
propagate(DeepFile deepFile)
Propagates the metadata and file contents back to the file in the file system. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLParser()
| Method Detail |
|---|
public boolean check(DeepFile df)
throws IOException
IFileParserChecks if there is a File in correct format and can be read by the parser. Checks e.g. header bytes.
check in interface IFileParserdf - the DeepFile to read from
IOException - if an error occurs while reading from the file
public Data parse(BufferedFileChannel f,
Prop prop)
throws IOException
f - the BufferedFileChannel to read the xml document fromprop - the database properties to use
null if the document is
not well-formed
IOException - if any error occurs
public void extract(DeepFile deepFile)
throws IOException
IFileParser
extract in interface IFileParserdeepFile - the DeepFile to save metadata and content to
IOException - if any error occurs while reading from the filepublic void propagate(DeepFile deepFile)
IFileParser
propagate in interface IFileParserdeepFile - the DeepFile that contains the metadata and file
contents
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||