Examples of load()


Examples of org.lightadmin.core.storage.FileResourceStorage.load()

                return new FilePropertyValue(false);
            }

            Link fileLink = entityLinks().linkForFilePropertyLink(instance, persistentProperty);

            byte[] fileData = fileResourceStorage.load(instance, persistentProperty);

            return new FilePropertyValue(fileLink, fileData);

        } catch (Exception e) {
            throw new ResourceNotFoundException(e.getMessage());
View Full Code Here

Examples of org.locationtech.udig.catalog.rasterings.GridCoverageLoader.load()

            GridCoverageLoader loader = geoResource.resolve(GridCoverageLoader.class, monitor);
            if( loader == null ){
                // unable to load in memory
                return;
            }
            GridCoverage2D coverage = (GridCoverage2D) loader.load(geom, monitor);

            if(coverage!=null)
      {
             
              //setting rendering hints
View Full Code Here

Examples of org.locationtech.udig.printing.model.BoxPrinter.load()

                    current=null;
            }
            if( current==null )
                return null;
            BoxPrinter printer=(BoxPrinter) current.createExecutableExtension("class"); //$NON-NLS-1$
            printer.load(memento);
            return printer;
        }catch (Exception e) {
          PrintingModelPlugin.log("Error while creating a box printer from string.", e); //$NON-NLS-1$
            return null;
        }
View Full Code Here

Examples of org.locationtech.udig.project.StyleContent.load()

        public void process(IExtension extension, IConfigurationElement element) throws Exception {
            if (found)
                return;

            StyleContent styleContent = (StyleContent) element.createExecutableExtension("class"); //$NON-NLS-1$
            style = styleContent.load(url, monitor);
            if (style != null) {
                id = styleContent.getId();
                id2content.put(styleContent.getId(), styleContent);
                found = true;
            }
View Full Code Here

Examples of org.locationtech.udig.project.internal.interceptor.CacheInterceptor.ViewStyleContent.load()

    public void testStyleContentTestNulls() throws Exception {
        ViewStyleContent content = new ViewStyleContent();
        XMLMemento memento = XMLMemento.createWriteRoot("root");
        DefaultQuery start = new DefaultQuery();
        content.save(memento, start);
        Query loaded = (Query) content.load(memento);
        assertEquals(start, loaded);
    }

    @Test
    public void testStyleContentAllNoneFilters() throws Exception {
View Full Code Here

Examples of org.luaj.vm2.LuaTable.load()

   * @see JsePlatform
   * @see JmePlatform
   */
  public static LuaTable standardGlobals() {
    LuaTable _G = new LuaTable();
    _G.load(new JseBaseLib());
    _G.load(new PackageLib());
    _G.load(new TableLib());
    _G.load(new StringLib());
    _G.load(new CoroutineLib());
    _G.load(new JseMathLib());
View Full Code Here

Examples of org.lwjgl.util.vector.Matrix4f.load()

        glEnable(GL_NORMALIZE);
        glColorMask(true, true, true, true);
        glDisable(GL_POLYGON_OFFSET_FILL);

        lightProjectionTemp.load(lightProjection);
        lightModelViewTemp.load(lightModelView);
        lightProjection.flip();
        lightModelView.flip();

        Matrix4f tempMatrix = new Matrix4f();
        tempMatrix.setIdentity();
View Full Code Here

Examples of org.maltparserx.core.feature.spec.reader.FeatureSpecReader.load()

        ((ParReader)specReader).setPpcoveredRoot(true);
      }
    }
    currentSpecModelURL = new ArrayList<SpecificationModel>();
    specModelKeyMap.put(specModelURL, currentSpecModelURL);
    specReader.load(specModelURL, this);
  }
 
  public void load(URL specModelURL) throws MaltChainedException {
    if (specModelURL == null) {
      throw new FeatureException("The URL to the feature specification model is missing or not well-formed. ");
View Full Code Here

Examples of org.maltparserx.core.feature.system.FeatureEngine.load()

  public SingleGuide(DependencyParserConfig configuration, GuideHistory history, GuideMode guideMode) throws MaltChainedException {
    this.configuration = configuration;
   
    this.guideMode = guideMode;
    final FeatureEngine system = new FeatureEngine();
    system.load("/appdata/features/ParserFeatureSystem.xml");
    system.load(PluginLoader.instance());
    featureModelManager = new FeatureModelManager(system, getConfiguration().getConfigurationDir());

    // initialize history
    this.history = history;
View Full Code Here

Examples of org.maltparserx.core.propagation.spec.PropagationSpecsReader.load()

    return url;
  }
 
  public void loadSpecification(String propagationSpecFileName) throws MaltChainedException {
    PropagationSpecsReader reader = new PropagationSpecsReader();
    reader.load(findURL(propagationSpecFileName), propagationSpecs);
    propagations = new Propagations(propagationSpecs, configDirectory.getInputDataFormatInstance());
  }
 
  public void propagate(Edge e) throws MaltChainedException {
    if (propagations != null && e != null) {
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.