|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.core.Progress
org.basex.build.Parser
org.basex.build.fs.FSParser
public final class FSParser
Imports/shreds/parses a file hierarchy into a 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 |
backingpath
Path to root of the backing store for this import. |
java.lang.String |
mountpoint
Path to FUSE mountpoint. |
static int |
SIZEOFFSET
Offset of the size value, as stored in atts(File, boolean). |
| Fields inherited from class org.basex.build.Parser |
|---|
doc, io, prop |
| Constructor Summary | |
|---|---|
FSParser(java.lang.String path,
Prop pr)
Constructor to parse single file nodes. |
|
FSParser(java.lang.String path,
java.lang.String mp,
java.lang.String bs,
Prop pr)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
det()
Returns short information on this process. |
void |
parse(Builder build)
Main entry point for the import of a file hierarchy. |
double |
prog()
Returns progress information. |
java.lang.String |
tit()
Returns short information on this process. |
| Methods inherited from class org.basex.build.Parser |
|---|
emptyParser, xmlParser |
| Methods inherited from class org.basex.core.Progress |
|---|
checkStop, detail, progress, progress, stop, title |
| 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 final java.lang.String mountpoint
public final java.lang.String backingpath
| Constructor Detail |
|---|
public FSParser(java.lang.String path,
java.lang.String mp,
java.lang.String bs,
Prop pr)
path - the traversal starts frommp - mount point for fusebs - path to root of backing store for BLOBspr - database properties
on Windows systems. If set to true, the path reference is ignored
public FSParser(java.lang.String path,
Prop pr)
path - String to file node to parsepr - database properties| 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 tit()
Progress
tit in class Progresspublic java.lang.String det()
Progress
det in class Progresspublic double prog()
Progress
prog in class Progress
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||