org.basex
Class BaseXClient

java.lang.Object
  extended by org.basex.core.Main
      extended by org.basex.BaseX
          extended by org.basex.BaseXClient

public final class BaseXClient
extends BaseX

This is the starter class for the client console mode. All input is sent to the server instance.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.core.Main
console, context, newline, out, session, verbose
 
Constructor Summary
BaseXClient(java.lang.String... args)
          Constructor.
 
Method Summary
static void main(java.lang.String... args)
          Main method of the database client, launching a client instance.
protected  boolean sa()
          Tests if this client is stand-alone.
protected  Session session()
          Returns the session.
 
Methods inherited from class org.basex.BaseX
parseArguments
 
Methods inherited from class org.basex.core.Main
console, execute, execute, quit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseXClient

public BaseXClient(java.lang.String... args)
            throws java.io.IOException
Constructor.

Parameters:
args - command-line arguments
Throws:
java.io.IOException - I/O exception
Method Detail

main

public static void main(java.lang.String... args)
Main method of the database client, launching a client instance. Command-line arguments are listed with the -h argument.

Parameters:
args - command-line arguments

sa

protected boolean sa()
Description copied from class: BaseX
Tests if this client is stand-alone.

Overrides:
sa in class BaseX
Returns:
stand-alone flag

session

protected Session session()
                   throws java.io.IOException
Description copied from class: Main
Returns the session.

Overrides:
session in class BaseX
Returns:
session
Throws:
java.io.IOException - I/O exception