Examples of addInputStream()


Examples of antlr.TokenStreamSelector.addInputStream()

      //TODO: Are any of these classes thread safe, and would not have to be created for each query?
            TerrierLexer lexer = new TerrierLexer(new StringReader(query));
            TerrierFloatLexer flexer = new TerrierFloatLexer(lexer.getInputState());

            TokenStreamSelector selector = new TokenStreamSelector();
            selector.addInputStream(lexer, "main");
            selector.addInputStream(flexer, "numbers");
            selector.select("main");
            TerrierQueryParser parser = new TerrierQueryParser(selector);
            parser.setSelector(selector);
            rtr = parser.query();
View Full Code Here

Examples of antlr.TokenStreamSelector.addInputStream()

            TerrierLexer lexer = new TerrierLexer(new StringReader(query));
            TerrierFloatLexer flexer = new TerrierFloatLexer(lexer.getInputState());

            TokenStreamSelector selector = new TokenStreamSelector();
            selector.addInputStream(lexer, "main");
            selector.addInputStream(flexer, "numbers");
            selector.select("main");
            TerrierQueryParser parser = new TerrierQueryParser(selector);
            parser.setSelector(selector);
            rtr = parser.query();
        }catch (Exception e) {
View Full Code Here

Examples of com.dotcms.repackage.net.sf.hibernate.cfg.Configuration.addInputStream()

      InputStream is =
        classLoader.getResourceAsStream("META-INF/sample-hbm.xml");

      if (is != null) {
        cfg = cfg.addInputStream(is);

        is.close();
      }

      cfg.setProperty(
View Full Code Here

Examples of net.sf.hibernate.cfg.Configuration.addInputStream()

      }

      if (this.mappingLocations != null) {
        // Register given Hibernate mapping definitions, contained in resource files.
        for (int i = 0; i < this.mappingLocations.length; i++) {
          config.addInputStream(this.mappingLocations[i].getInputStream());
        }
      }

      if (this.mappingJarLocations != null) {
        // Register given Hibernate mapping definitions, contained in jar files.
View Full Code Here

Examples of org.activiti.engine.repository.DeploymentBuilder.addInputStream()

                        || resourceName.endsWith(".zip")
                        || resourceName.endsWith(".jar")) {
                    deploymentBuilder.addZipInputStream(new ZipInputStream(
                            resource.getInputStream()));
                } else {
                    deploymentBuilder.addInputStream(resourceName,
                            resource.getInputStream());
                }

                Deployment deployment = deploymentBuilder.deploy();
                logger.info("auto deploy : {}", resourceName);
View Full Code Here

Examples of org.camunda.bpm.engine.repository.DeploymentBuilder.addInputStream()

          if ( resourceName.endsWith(".bar")
               || resourceName.endsWith(".zip")
               || resourceName.endsWith(".jar") ) {
            deploymentBuilder.addZipInputStream(new ZipInputStream(resource.getInputStream()));
          } else {
            deploymentBuilder.addInputStream(resourceName, resource.getInputStream());
          }
        } catch (IOException e) {
          throw new ProcessEngineException("couldn't auto deploy resource '"+resource+"': "+e.getMessage(), e);
        }
      }
View Full Code Here

Examples of org.camunda.bpm.engine.repository.DeploymentBuilder.addInputStream()

    for (String name : partNames) {
      FormPart part = payload.getNamedPart(name);

      if (!RESERVED_KEYWORDS.contains(name)) {
        deploymentBuilder.addInputStream(part.getFileName(), new ByteArrayInputStream(part.getBinaryContent()));
      }
    }

    if (payload.getNamedPart(DEPLOYMENT_NAME) != null) {
      FormPart part = payload.getNamedPart(DEPLOYMENT_NAME);
View Full Code Here

Examples of org.camunda.bpm.engine.repository.ProcessApplicationDeploymentBuilder.addInputStream()

      deploymentBuilder.resumePreviousVersions();
    }

    // add all resources obtained through the processes.xml and through scanning
    for (Entry<String, byte[]> deploymentResource : deploymentMap.entrySet()) {
      deploymentBuilder.addInputStream(deploymentResource.getKey(), new ByteArrayInputStream(deploymentResource.getValue()));
    }

    // allow the process application to add additional resources to the deployment
    processApplication.createDeployment(processArchive.getName(), deploymentBuilder);
View Full Code Here

Examples of org.camunda.bpm.engine.repository.ProcessApplicationDeploymentBuilder.addInputStream()

      }
      deploymentBuilder.name(deploymentName);

      // add deployment resources
      for (Entry<String, byte[]> resource : deploymentMap.entrySet()) {
        deploymentBuilder.addInputStream(resource.getKey(), new ByteArrayInputStream(resource.getValue()));
      }

      // let the process application component add resources to the deployment.
      processApplication.createDeployment(processArchive.getName(), deploymentBuilder);
View Full Code Here

Examples of org.compass.core.config.CompassConfiguration.addInputStream()

            config.getSettings().addSettings(this.settings);
        }

        if (resourceLocations != null) {
            for (Resource resourceLocation : resourceLocations) {
                config.addInputStream(resourceLocation.getInputStream(), resourceLocation.getFilename());
            }
        }

        if (resourceJarLocations != null && !"".equals(resourceJarLocations.trim())) {
            log.info("开始执行apdplat对compass的定制修改2");
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.