|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.build.fs.parser.AbstractParser
org.basex.build.fs.parser.TXTParser
public final class TXTParser
Text parser that tries to extract textual content from files.
| Constructor Summary | |
|---|---|
TXTParser()
Standard constructor. |
|
| Method Summary | |
|---|---|
boolean |
check(BufferedFileChannel bfc)
Checks if there is a File in correct format and can be read by the parser. |
void |
readContent(BufferedFileChannel bfc,
NewFSParser parser)
Reads the textual content from a FileChannel and fires events. |
| Methods inherited from class org.basex.build.fs.parser.AbstractParser |
|---|
readMeta, readMetaAndContent |
| 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(BufferedFileChannel bfc)
Checks if there is a File in correct format and can be read by the parser. Checks e.g. header bytes.
check in class AbstractParserbfc - the BufferedFileChannel to read from.
public void readContent(BufferedFileChannel bfc,
NewFSParser parser)
throws java.io.IOException
Reads the textual content from a FileChannel and fires events.
readContent in class AbstractParserbfc - the BufferedFileChannel to read from.parser - the NewFSParser instance to write the content to.
java.io.IOException - if any error occurs while reading from the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||