Examples of load()


Examples of org.apache.fop.image.FopImage.load()

                            FopImage img = fact.getImage(url, userAgent);
                            if (img == null) {
                                log.error("Background image not available: " + url);
                            } else {
                                // load dimensions
                                if (!img.load(FopImage.DIMENSIONS)) {
                                    log.error("Cannot read background image dimensions: "
                                            + url);
                                }
                            }
                            bkg.setFopImage(img);
View Full Code Here

Examples of org.apache.fop.image.JpegImage.load()

                    && (data[1] == (byte)0xD8)
                    && (data[2] == (byte)0xFF)) {
                FopImage.ImageInfo ii = ImageReaderFactory.make
                        (purl.toString(), is, null);
                JpegImage jpeg = new JpegImage(ii);
                jpeg.load(FopImage.ORIGINAL_DATA);
                PDFJpegNode node = new PDFJpegNode(jpeg, ctx, imageElement, purl);
   
                Rectangle2D imgBounds = getImageBounds(ctx, imageElement);
                Rectangle2D bounds = node.getPrimitiveBounds();
                float [] vb = new float[4];
View Full Code Here

Examples of org.apache.fop.image.XMLImage.load()

                Point2D intrinsicDimensions = child.getDimension(csize);
                info.width = (int) intrinsicDimensions.getX();
                info.height = (int) intrinsicDimensions.getY();
               
                FopImage fopImage = new XMLImage(info);
                fopImage.load(FopImage.ORIGINAL_DATA);

                putGraphic(ifo, fopImage);
            } else {
                log.warn("The namespace " + ns
                        + " for instream-foreign-objects is not supported.");
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationManager.load()

            if (configurationManager.isLoaded(URI.create(config)))
                configName = JMXUtil
                        .getObjectName(ObjectNameConstants.CONFIG_GBEAN_PREFIX
                                + "\"" + getConfigID(actionRequest) + "\"");
            else
                configName = configurationManager.load(URI.create(config));

            if (START_ACTION.equals(action)) {
                kernel.startRecursiveGBean(configName);
                //kernel.startConfiguration(getConfigID(actionRequest));
                messageStatus = "Started application<br /><br />";
View Full Code Here

Examples of org.apache.geronimo.system.configuration.LocalAttributeManager.load()

       
        LocalAttributeManager attributeStore = new LocalAttributeManager(serverInstance.getConfigFile(), serverInstance.getConfigSubstitutionsFile(),
                serverInstance.getConfigSubstitutionsPrefix(),
                false,
                serverInfo);
        attributeStore.load();
        for (ModuleType module : overrides.getModule()) {
            Artifact artifact = Artifact.create(module.getName());
            attributeStore.setModuleGBeans(artifact, module.getGbean(), module.isLoad(), module.getCondition());
            attributeStore.save();
        }
View Full Code Here

Examples of org.apache.hadoop.chukwa.dataloader.DataLoaderFactory.load()

        StringBuilder dirSearch = new StringBuilder();
        dirSearch.append(directory);
        dirSearch.append("/*/*/*.evt");
        Path demuxDir = new Path(dirSearch.toString());
        FileStatus[] events = fs.globStatus(demuxDir);
        dataloader.load(conf, fs, events);
      }
    } catch(Exception e) {
      log.error(ExceptionUtil.getStackTrace(e));
      return false;
    }
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.spi.UrlRewriteRulesImporter.load()

  public static UrlRewriteRulesDescriptor load( String format, Reader reader ) throws IOException {
    UrlRewriteRulesImporter importer = IMPORTERS.get( format );
    if( importer == null ) {
      throw new IllegalArgumentException( RES.noImporterForFormat( format ) );
    }
    return importer.load( reader );
  }

  public static void store( UrlRewriteRulesDescriptor descriptor, String format, Writer writer ) throws IOException {
    UrlRewriteRulesExporter exporter = EXPORTERS.get( format );
    if( exporter == null ) {
View Full Code Here

Examples of org.apache.hadoop.hbase.master.MasterCoprocessorHost.load()

    // Enable EXEC permission checking
    conf.setBoolean(AccessController.EXEC_PERMISSION_CHECKS_KEY, true);

    TEST_UTIL.startMiniCluster();
    MasterCoprocessorHost cpHost = TEST_UTIL.getMiniHBaseCluster().getMaster().getCoprocessorHost();
    cpHost.load(AccessController.class, Coprocessor.PRIORITY_HIGHEST, conf);
    ACCESS_CONTROLLER = (AccessController) cpHost.findCoprocessor(AccessController.class.getName());
    CP_ENV = cpHost.createEnvironment(AccessController.class, ACCESS_CONTROLLER,
      Coprocessor.PRIORITY_HIGHEST, 1, conf);
    RegionServerCoprocessorHost rsHost = TEST_UTIL.getMiniHBaseCluster().getRegionServer(0)
        .getCoprocessorHost();
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.load()

    // and set it to region.
    RegionCoprocessorHost host = new RegionCoprocessorHost(r, null, conf);
    r.setCoprocessorHost(host);

    for (Class<?> implClass : implClasses) {
      host.load(implClass, Coprocessor.PRIORITY_USER, conf);
    }
    // we need to manually call pre- and postOpen here since the
    // above load() is not the real case for CP loading. A CP is
    // expected to be loaded by default from 1) configuration; or 2)
    // HTableDescriptor. If it's loaded after HRegion initialized,
View Full Code Here

Examples of org.apache.hama.manager.util.UITemplate.load()

        response.setContentType("text/html");
        PrintWriter out = response.getWriter();

        UITemplate uit = new UITemplate();
        String tplPath = "webapp/commons/tpl/"; // UI tempalet file path
        String tplfile = uit.load(tplPath + "tpl.logview.html"); // UI tmepalte
                                                                 // file

        HashMap<String, String> vars = new HashMap<String, String>();

        String tplHead = uit.getArea(tplfile, "head");
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.