From: Jean-Marc V. <jm...@us...> - 2004-07-13 15:09:52
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/collections In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27834/src/org/exist/collections Modified Files: Collection.java Log Message: storing SAX events directly in the database Index: Collection.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/collections/Collection.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** Collection.java 12 Jul 2004 17:17:40 -0000 1.40 --- Collection.java 13 Jul 2004 15:09:44 -0000 1.41 *************** *** 136,139 **** --- 136,142 ---- private Lock lock = null; + /** user-defined Reader */ + private XMLReader userReader = null; + public Collection(CollectionStore db, String name) { this.name = name; *************** *** 1308,1313 **** --- 1311,1327 ---- } + /** set user-defined Reader */ + public void setReader(XMLReader reader){ + userReader = reader; + } + + /** If user-defined Reader is set, return it; otherwise return JAXP default XMLReader + * configured by eXist. */ private XMLReader getReader(DBBroker broker) throws EXistException, SAXException { + + if ( userReader != null ) + return userReader; + Configuration config = broker.getConfiguration(); // get validation settings |