org.exist.xquery.test
Class SAXStorageTest

java.lang.Object
  extended byTestCase
      extended byorg.exist.xquery.test.SAXStorageTest

public class SAXStorageTest
extends TestCase

This TestCase is for direct storage of SAX events in the database; one has to implement an XMLReader. It is also a stress test that creates large documents using SAX, use main() for this.

Author:
jmv
See Also:
Serialized Form

Constructor Summary
SAXStorageTest(java.lang.String s)
           
 
Method Summary
static void main(java.lang.String[] args)
          arguments: lines , columns, XQuery string
protected  void setUp()
           
 void testQueryBigDocument()
          Store in the new way: the XMLResource stores just a File object before storeResource() stores the SAX events in the database.
 void testQueryStoreContentAsSAX()
          Store in the "classical" eXist way: the XMLResource stores an XML string before storeResource() stores it in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXStorageTest

public SAXStorageTest(java.lang.String s)
Method Detail

setUp

protected void setUp()

testQueryStoreContentAsSAX

public void testQueryStoreContentAsSAX()
Store in the "classical" eXist way: the XMLResource stores an XML string before storeResource() stores it in the database.


testQueryBigDocument

public void testQueryBigDocument()
Store in the new way: the XMLResource stores just a File object before storeResource() stores the SAX events in the database.

Throws:
XMLDBException

main

public static void main(java.lang.String[] args)
arguments: lines , columns, XQuery string



<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.