Class ArchiveCreate

Direct Known Subclasses:
ArchiveCreateFrom, ArchiveUpdate

public class ArchiveCreate extends StandardFunc
Function implementation.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • ArchiveCreate

      public ArchiveCreate()
  • Method Details

    • item

      public Item item(QueryContext qc, InputInfo ii) throws QueryException
      Description copied from class: Expr
      Evaluates the expression and returns the resulting item, or Empty.VALUE if the expression yields an empty sequence. If this method is not implemented, Expr.value(QueryContext) must be implemented instead.
      Overrides:
      item in class ParseExpr
      Parameters:
      qc - query context
      ii - input info (only required by Seq instances, which have no input info)
      Returns:
      item or Empty.VALUE
      Throws:
      QueryException - query exception
    • level

      protected int level(CreateOptions options) throws QueryException
      Returns the compression level.
      Parameters:
      options - options
      Returns:
      level
      Throws:
      QueryException - query exception
    • add

      protected final void add(Item[] entry, org.basex.query.func.archive.ArchiveOut out, int level, String root, QueryContext qc) throws QueryException, IOException
      Adds the specified entry to the output stream.
      Parameters:
      entry - archive entry
      out - output archive
      level - default compression level
      root - root path (empty, or ending with slash)
      qc - query context
      Throws:
      QueryException - query exception
      IOException - I/O exception