Package org.basex.core.cmd
Class Store
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.ACreate
org.basex.core.cmd.Store
Evaluates the 'store' command and stores binary content into the database.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(CmdBuilder cb) Builds a string representation from the command.protected booleanrun()Executes the command and serializes the result (internal call).static voidstore(InputSource in, IOFile file) Stores the specified source to the specified file.Methods inherited from class org.basex.core.cmd.ACreate
addLocks, newData, stoppable, supportsProgMethods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, result, run, run, setInput, setInput, toString, toString, updated, updating
-
Constructor Details
-
Store
Constructor, specifying a target path. The input needs to be set viaCommand.setInput(InputStream).- Parameters:
path- target path
-
Store
Constructor, specifying a target path and an input.- Parameters:
path- target pathinput- input file
-
-
Method Details
-
run
protected boolean run()Description copied from class:CommandExecutes the command and serializes the result (internal call). -
store
Stores the specified source to the specified file.- Parameters:
in- input sourcefile- target file- Throws:
IOException- I/O exception
-
build
Description copied from class:CommandBuilds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
-