Examples of load()


Examples of org.geotools.data.shapefile.index.quadtree.fs.FileSystemIndexStore.load()

                return null;
            }

            try {
                FileSystemIndexStore idxStore = new FileSystemIndexStore(treeFile);
                return idxStore.load(store.shpManager.openIndexFile(), store.isMemoryMapped());
            } catch (IOException e) {
                throw new StoreException(e);
            }
        } finally {
            shpFiles.unlockRead(treeURL, writer);
View Full Code Here

Examples of org.geotools.validation.ValidationProcessor.load()

    // validationExample2 start

    // set up a validation processor using two directories of
    // configuraiton files
    ValidationProcessor processor = new ValidationProcessor();
    processor.load( pluginDirectory, testSuiteDirectory );

    // normally you load definition from file
    // it will load all the files in the provided directories
    processor.load( pluginDirectory, testSuiteDirectory );
View Full Code Here

Examples of org.geowebcache.arcgis.config.CacheInfoPersister.load()

        URL url = getClass().getResource("/arcgis_09.2_conf.xml");
        CacheInfoPersister persister = new CacheInfoPersister();
        InputStream stream = url.openStream();
        Reader reader = new InputStreamReader(stream);
        try {
            cacheInfo = persister.load(reader);
        } finally {
            stream.close();
        }
        layerBounds = new BoundingBox(-10, -10, 100, 50);
        builder = new GridSetBuilder();
View Full Code Here

Examples of org.gephi.project.api.ProjectPropertiesUI.load()

    public void actionPerformed(ActionEvent e) {
        ProjectPropertiesUI ui = Lookup.getDefault().lookup(ProjectPropertiesUI.class);
        if (ui != null) {
            JPanel panel = ui.getPanel();
            ui.load(project);
            DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(ProjectNode.class, "ProjectNode_projectProperties_dialogTitle"));
            Object result = DialogDisplayer.getDefault().notify(dd);
            if (result == NotifyDescriptor.OK_OPTION) {
                ui.save(project);
            }
View Full Code Here

Examples of org.glassfish.api.deployment.Deployer.load()

               
                // get the container.
                Deployer deployer = engineInfo.getDeployer();

                try {
                   ApplicationContainer appCtr = deployer.load(engineInfo.getContainer(), context);
                   if (appCtr==null) {
                       String msg = "Cannot load application in " + engineInfo.getContainer().getName() + " container";
                       logger.fine(msg);
                       continue;
                   }
View Full Code Here

Examples of org.globus.security.gridmap.GridMap.load()

        System.out.println("Adding DN '" + dn + "'");
        System.out.println(" ... with user mapping '" + userMapping + "'");
        System.out.println(" ... to grid-mapfile '" + path + "'");

        final GridMap gridmap = new GridMap();
        gridmap.load(path);

        boolean foundOne = false;
        final String[] userids = gridmap.getUserIDs(dn);
        if (userids != null && userids.length > 0) {
            for (int i = 0; i < userids.length; i++) {
View Full Code Here

Examples of org.globus.workspace.service.InstanceResource.load()

        try {

            final Element el = this.cache.get(id);
            if (el == null) {
                resource = this.newInstance(id);
                resource.load(id); // throws DoesNotExistException if not in db

                final Calendar currTime = Calendar.getInstance();
                final Calendar termTime = resource.getTerminationTime();
                if (termTime != null && termTime.before(currTime)) {
                    boolean destroyed = this.destroy(id);
View Full Code Here

Examples of org.grouplens.lenskit.config.ConfigurationLoader.load()

        ConfigurationLoader loader = new ConfigurationLoader(getClassLoader());
        // FIXME Make properties available

        List<LenskitConfiguration> configs = Lists.newArrayListWithCapacity(files.size());
        for (File file: files) {
            configs.add(loader.load(file));
        }

        return configs;
    }
}
View Full Code Here

Examples of org.guvnor.common.services.project.service.POMService.load()

     
      if (project == null) {
        throw new IllegalArgumentException("Unable to find project " + projectUri);
      }
     
      POM pom = pomService.load(project.getPomXMLPath());
      pom.getGav().setVersion(version);
      pomService.save(project.getPomXMLPath(), pom, null, "Update project version during release");
      executionResults.setData("GAV", pom.getGav().toString());
    }
View Full Code Here

Examples of org.h2.util.SortedProperties.load()

            while (!stopNow) {
                try {
                    SortedProperties sp = new SortedProperties();
                    if (file.exists()) {
                        InputStream in = IOUtils.openFileInputStream(file.getName());
                        sp.load(in);
                        translation.putAll(sp);
                    } else {
                        OutputStream out = IOUtils.openFileOutputStream(file.getName(), false);
                        sp.putAll(translation);
                        sp.store(out, "Translation");
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.