|
||||||||||
| 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.XMLParser
public final class XMLParser
Parser for XML files.
| Constructor Summary | |
|---|---|
XMLParser()
Standard constructor. |
|
| Method Summary | |
|---|---|
boolean |
check(BufferedFileChannel f)
Checks if there is a File in correct format and can be read by the parser. |
void |
meta(BufferedFileChannel bfc,
NewFSParser parser)
Reads the metadata from a BufferedFileChannel and fires events for
each key/value pair. |
void |
readContent(BufferedFileChannel f,
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 XMLParser()
| Method Detail |
|---|
public boolean check(BufferedFileChannel f)
AbstractParserChecks if there is a File in correct format and can be read by the parser. Checks e.g. header bytes.
check in class AbstractParserf - the BufferedFileChannel to read from.
public void readContent(BufferedFileChannel f,
NewFSParser parser)
throws java.io.IOException
AbstractParser
Reads the textual content from a FileChannel and fires events.
readContent in class AbstractParserf - 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.
public void meta(BufferedFileChannel bfc,
NewFSParser parser)
AbstractParser
Reads the metadata from a BufferedFileChannel and fires events for
each key/value pair.
bfc - BufferedFileChannel to read from.parser - the NewFSParser instance to fire events.NewFSParser.metaEvent(Metadata)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||