Package org.exist.xmldb

Examples of org.exist.xmldb.LocalCollection.storeResource()


        LocalCollection coll = (LocalCollection)root;
        coll.setReader(dataSource);
                                String existHome = System.getProperty("exist.home");
                                File existDir = existHome==null ? new File(".") : new File(existHome);
        doc.setContent(new File(existDir,FILE_STORED));
        coll.storeResource(doc);
        long t1 = System.currentTimeMillis();
        System.out.println("Time for storing:  " + ( t1-t0) + " ms." );
      }
    } catch (XMLDBException e) {
      fail(e.getMessage());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.