|
||||||||||
| 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 | |
|---|---|
java.lang.String |
mountpoint
Path to FUSE mountpoint. |
java.lang.String |
mybackingpath
Path to root of the backing store for this import. |
static int |
SIZEOFFSET
Offset of the size value, as stored in atts(File, boolean). |
| Fields inherited from class org.basex.build.Parser |
|---|
doc, io |
| Constructor Summary | |
|---|---|
FSParser(java.lang.String path)
Constructor to parse single file nodes. |
|
FSParser(java.lang.String path,
java.lang.String mp,
java.lang.String bs)
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. |
double |
prog()
Returns a value from 0 to 1, representing the current progress. |
| Methods inherited from class org.basex.build.Parser |
|---|
getXMLParser |
| 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).
public java.lang.String mybackingpath
public java.lang.String mountpoint
| Constructor Detail |
|---|
public FSParser(java.lang.String path,
java.lang.String mp,
java.lang.String bs)
path - the traversal starts frommp - mount point for fusebs - path to root of backing store for BLOBs
on Windows systems. If set to true, the path reference is ignoredpublic FSParser(java.lang.String path)
path - String to file node to parse| 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 | |||||||||