Class Store


public final class Store extends ACreate
Evaluates the 'store' command and stores binary content into the database.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • Store

      public Store(String path)
      Constructor, specifying a target path. The input needs to be set via Command.setInput(InputStream).
      Parameters:
      path - target path
    • Store

      public Store(String path, String input)
      Constructor, specifying a target path and an input.
      Parameters:
      path - target path
      input - input file
  • Method Details

    • run

      protected boolean run()
      Description copied from class: Command
      Executes the command and serializes the result (internal call).
      Specified by:
      run in class Command
      Returns:
      success of operation
    • store

      public static void store(InputSource in, IOFile file) throws IOException
      Stores the specified source to the specified file.
      Parameters:
      in - input source
      file - target file
      Throws:
      IOException - I/O exception
    • build

      public void build(CmdBuilder cb)
      Description copied from class: Command
      Builds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
      Overrides:
      build in class Command
      Parameters:
      cb - command builder