|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deepfs.fsml.parsers.TXTParser
public final class TXTParser
Text parser that tries to extract textual content from files.
Constructor Summary | |
---|---|
TXTParser()
|
Method Summary | |
---|---|
boolean |
check(DeepFile deepFile)
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. |
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 TXTParser()
Method Detail |
---|
public boolean check(DeepFile deepFile)
IFileParser
Checks if there is a File in correct format and can be read by the parser. Checks e.g. header bytes.
check
in interface IFileParser
deepFile
- the DeepFile
to read from
public void extract(DeepFile deepFile) throws IOException
IFileParser
extract
in interface IFileParser
deepFile
- 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 IFileParser
deepFile
- 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 |