org.basex.core.proc
Class Check

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.core.Proc
          extended by org.basex.core.proc.Check

public final class Check
extends Proc

Evaluates the 'open' command and opens a database.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.core.Proc
DATAREF, flags, STANDARD
 
Constructor Summary
Check(String path)
          Default constructor.
 
Method Summary
static Data check(Context ctx, String path)
          Opens the specified database; if it does not exist, create a new database instance.
 
Methods inherited from class org.basex.core.Proc
exec, exec, execute, execute, info, result, toString, updating
 
Methods inherited from class org.basex.core.Progress
abort, checkStop, det, detail, prog, progress, progress, stop, tit, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Check

public Check(String path)
Default constructor.

Parameters:
path - file path
Method Detail

check

public static Data check(Context ctx,
                         String path)
                  throws IOException
Opens the specified database; if it does not exist, create a new database instance.

Parameters:
ctx - database context
path - document path
Returns:
data reference
Throws:
IOException - I/O exception