Package org.basex.core.cmd
Class Export
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.Export
Evaluates the 'export' command and saves the currently opened database
to disk.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocks()Adds the strings (databases, special identifiers) for which locks need to be acquired.Returns detailed progress information.static voidexport(Data data, String path, MainOptions options, Export export) Exports the current database to the specified path.static voidexport(Data data, String path, SerializerOptions sopts, Export export) Exports the current database to the specified path.doubleReturns a progress value (0 - 1).protected booleanrun()Executes the command and serializes the result (internal call).Returns short progress information.booleanReturns true if this command can be stopped.booleanReturns true if this command returns a progress value.Methods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, build, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, newData, result, run, run, setInput, setInput, toString, toString, updated, updating
-
Constructor Details
-
Export
Default constructor, specifying a target path.- Parameters:
path- export path
-
-
Method Details
-
run
protected boolean run()Description copied from class:CommandExecutes the command and serializes the result (internal call). -
addLocks
public void addLocks()Description copied from class:JobAdds the strings (databases, special identifiers) for which locks need to be acquired. -
export
public static void export(Data data, String path, MainOptions options, Export export) throws IOException Exports the current database to the specified path. Files and directories inpathwill be possibly overwritten.- Parameters:
data- data referencepath- directoryoptions- main optionsexport- calling instance- Throws:
IOException- I/O exception
-
export
public static void export(Data data, String path, SerializerOptions sopts, Export export) throws IOException Exports the current database to the specified path. Files and directories inpathwill be possibly overwritten.- Parameters:
data- data referencepath- directorysopts- serialization parametersexport- calling instance- Throws:
IOException- I/O exception
-
progressInfo
public double progressInfo()Description copied from class:JobReturns a progress value (0 - 1). Can be overwritten to give more specific feedback.- Overrides:
progressInfoin classJob- Returns:
- header information
-
stoppable
public boolean stoppable()Description copied from class:CommandReturns true if this command can be stopped. This method is only required by the GUI. -
supportsProg
public boolean supportsProg()Description copied from class:CommandReturns true if this command returns a progress value. This method is only required by the GUI.- Overrides:
supportsProgin classCommand- Returns:
- result of check
-
shortInfo
Description copied from class:JobReturns short progress information. Can be overwritten to give more specific feedback. -
detailedInfo
Description copied from class:JobReturns detailed progress information. Can be overwritten to give more specific feedback.- Overrides:
detailedInfoin classJob- Returns:
- header information
-