|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.build.Parser
org.basex.build.fs.FSParser
public final class FSParser
Imports/shreds/parses a file hierarchy into a BaseX database. The overall process of importing a file hierarchy can be described as follows:
CreateFS command.
To import on the command line type:
$ create fs [path] [dbname]
FSParser instantiates the needed components
for the import process in its parse(Builder) method.
| Field Summary | |
|---|---|
static int |
SIZEOFFSET
Offset of the size value, as stored in atts(File, boolean). |
| Fields inherited from class org.basex.build.Parser |
|---|
atts, io |
| Constructor Summary | |
|---|---|
FSParser(IO path,
boolean r)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
det()
Returns detailed progress information. |
java.lang.String |
head()
Returns a compact description of the current progress. |
void |
parse(Builder build)
Main entry point for the import of a file hierarchy to BaseX. |
double |
prog()
Returns a value from 0 to 1, representing the current progress. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZEOFFSET
atts(File, boolean).
| Constructor Detail |
|---|
public FSParser(IO path,
boolean r)
path - the traversal starts fromr - root flag to parse root node or all partitions (C:, D: ...).
on Windows systems. If set to true, the path reference is ignored| Method Detail |
|---|
public void parse(Builder build)
throws java.io.IOException
parse in class Parserbuild - instance passed by CreateFS.
java.io.IOException - I/O exceptionpublic java.lang.String head()
Parser
head in class Parserpublic java.lang.String det()
Parser
det in class Parserpublic double prog()
Parser
prog in class Parser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||