Examples of DocumentFactory


Examples of net.sf.regain.crawler.document.DocumentFactory

      if (!mAnalysisDir.mkdir()) {
        throw new RegainException("Creating analysis directory failed: " + mAnalysisDir.getAbsolutePath());
      }
    }

    mDocumentFactory = new DocumentFactory(config, mAnalysisDir);
  }
View Full Code Here

Examples of nux.xom.pool.DocumentFactory

      };
      builderPool = new BuilderPool(config, builderFactory);
    }

    // prepare DocumentFactory and DocumentPool
    DocumentFactory docFactory = new DocumentFactory() {
      public Document createDocument(InputStream input, URI baseURI)
          throws ParsingException, IOException {
        long start = System.currentTimeMillis();
        Document doc;
        if (baseURI != null && baseURI.getPath().endsWith(".bnux")) {
View Full Code Here

Examples of nux.xom.pool.DocumentFactory

        System.err.println("href="+ href);
        System.err.println("baseURI="+ baseURI);
        System.err.println("systemID="+ systemID);
      }
      if (systemID != null && systemID.endsWith(".bnux")) {
        return new DocumentFactory().getBinaryXMLFactory().
          createDocument(null, URI.create(systemID));
      }
      return BuilderPool.GLOBAL_POOL.getBuilder(false).build(systemID);
    }
View Full Code Here

Examples of org.apache.batik.dom.util.DocumentFactory

         * The stream is assumed to be using the ISO 8859-1 character encoding.
         */
        public synchronized void load(InputStream is) throws IOException {
            BufferedReader r;
            r = new BufferedReader(new InputStreamReader(is, PREFERENCE_ENCODING));
            DocumentFactory df = new SAXDocumentFactory
                (GenericDOMImplementation.getDOMImplementation(),
                 xmlParserClassName);
            Document doc = df.createDocument("http://xml.apache.org/batik/preferences",
                                             "preferences",
                                             null,
                                             r);
            Element elt = doc.getDocumentElement();
            for (Node n = elt.getFirstChild(); n != null; n = n.getNextSibling()) {
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.util.DocumentFactory

         * The stream is assumed to be using the ISO 8859-1 character encoding.
         */
        public synchronized void load(InputStream is) throws IOException {
            BufferedReader r;
            r = new BufferedReader(new InputStreamReader(is, PREFERENCE_ENCODING));
            DocumentFactory df = new SAXDocumentFactory
                (GenericDOMImplementation.getDOMImplementation(),
                 xmlParserClassName);
            Document doc = df.createDocument("http://xml.apache.org/batik/preferences",
                                             "preferences",
                                             null,
                                             r);
            Element elt = doc.getDocumentElement();
            for (Node n = elt.getFirstChild(); n != null; n = n.getNextSibling()) {
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentFactory

                // contain
                // references to any new documents that were uploaded during the transaction.
                // See https://issues.apache.org/bugzilla/show_bug.cgi?id=47621
                Session readOnlySession = RepositoryUtil.createSession(this.manager,
                        examinedDocument.getSession().getIdentity(), false);
                DocumentFactory newFactory = DocumentUtil.createDocumentFactory(this.manager,
                        readOnlySession);
                final LinkRewriter[] rewriters = { new UrlToUuidRewriter(pub.getFactory()),
                        new UrlToUuidRewriter(newFactory) };

                org.w3c.dom.Document xml = DocumentHelper.readDocument(examinedDocument
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentFactory

            return;
        }
       
        Document document = getSourceDocument();
        Publication publication = document.getPublication();
        DocumentFactory map = document.getFactory();
        SiteStructure liveSite = publication.getArea(Publication.LIVE_AREA).getSite();

        List missingDocuments = new ArrayList();

        ServiceSelector selector = null;
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentFactory

    public void testSimpleSiteManager() throws Exception {

        Session session = login("lenya");

        DocumentFactory factory = DocumentUtil.createDocumentFactory(getManager(), session);
        Publication[] pubs = factory.getPublications();

        for (int i = 0; i < pubs.length; i++) {
            checkPublication(session, factory, pubs[i]);
        }
    }
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentFactory

     * @throws Exception
     */
    public void testMigrateUuids() throws Exception {

        Session session = login("lenya");
        DocumentFactory factory = DocumentUtil.createDocumentFactory(getManager(), session);
        Publication[] pubs = factory.getPublications();
        for (int i = 0; i < pubs.length; i++) {
            this.migratedDocs.clear();
            migratePublication(pubs[i]);
        }
        session.commit();
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentFactory

        } else {
            log.debug("Workflow event: [" + eventName + "]");
            // check for workflow instance first (task can initialize the workflow history)
            try {
                Session session = RepositoryUtil.createSession(this.manager, null);
                DocumentFactory map = DocumentUtil.createDocumentIdentityMap(this.manager, session);
                this.document = map.getFromURL(webappUrl);
            } catch (Exception e) {
                throw new ExecutionException(e);
            }
        }
    }
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.