|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deepfs.fsml.parsers.EMLParser
public final class EMLParser
Parser for EML files.
| Constructor Summary | |
|---|---|
EMLParser()
|
|
| 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 df)
Extracts metadata and file contents. |
static boolean |
isEmailAddress(String str)
Checks if the given string contains a valid email address. |
void |
propagate(DeepFile df)
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 EMLParser()
| 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 filepublic void propagate(DeepFile df)
IFileParser
propagate in interface IFileParserdf - the DeepFile that contains the metadata and file
contents
public void extract(DeepFile df)
throws IOException
IFileParser
extract in interface IFileParserdf - the DeepFile to save metadata and content to
IOException - if any error occurs while reading from the filepublic static boolean isEmailAddress(String str)
str - the string to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||