Examples of load()


Examples of etc.aloe.data.MessageSet.load()

        messages.setDateFormat(factory.constructDateFormat());

        try {
            System.out.println("Reading messages from " + inputCSVFile);
            InputStream inputCSV = new FileInputStream(inputCSVFile);
            messages.load(inputCSV);
            inputCSV.close();
        } catch (FileNotFoundException e) {
            System.err.println("Input CSV file " + inputCSVFile + " not found.");
            System.exit(1);
        } catch (InvalidObjectException e) {
View Full Code Here

Examples of etc.aloe.data.Model.load()

    protected Model loadModel(File inputModelFile) {
        Model model = factory.constructModel();
        try {
            System.out.println("Reading model from " + inputModelFile);
            InputStream inputModel = new FileInputStream(inputModelFile);
            model.load(inputModel);
            inputModel.close();
        } catch (FileNotFoundException e) {
            System.err.println("Model file " + inputModelFile + " not found.");
            System.exit(1);
        } catch (InvalidObjectException e) {
View Full Code Here

Examples of eu.admire.dispel.resource.dispel.mopp.DispelResource.load()

        Activator.logWarning(("Error reading " + d.getLocation() + " " +
            d.getLine() + ":" + d.getColumn() + " " +
            d.getMessage()));
      }

      resource.load(getOptions());       

    } catch (Exception e) {
      Activator.logWarning("Failed to read " + regFile);
      Activator.logWarning("Caught exception: " + e.getMessage());
View Full Code Here

Examples of eu.planets_project.pp.plato.evaluation.MeasurementsDescriptorParser.load()

       MeasurementsDescriptorParser parser = new MeasurementsDescriptorParser();
      
       Map<String, MeasurableProperty> digestedProperties = new HashMap<String, MeasurableProperty>();
       Map<String, Metric> digestedMetrics = new HashMap<String, Metric>();
       
       parser.load(descriptor, digestedProperties, digestedMetrics);
      
       // merge digested properties with already existing
       for (MeasurableProperty p : digestedProperties.values()) {
           MeasurementInfo helperInfo = new MeasurementInfo();
           helperInfo.setMetric(null);
View Full Code Here

Examples of eu.scape_project.planning.manager.ByteStreamManager.load()

        object.setContentType("text");
        object.getData().setData(content.getBytes());

        // mock ByteStreamManager
        ByteStreamManager byteStreamManager = mock(ByteStreamManager.class);
        when(byteStreamManager.load("pid")).thenReturn(content.getBytes());

        // execute test
        DigitalObjectManager digitalObjectManager = new DigitalObjectManager();
        digitalObjectManager.setByteStreamManager(byteStreamManager);
        DigitalObject resultObject = digitalObjectManager.getCopyOfDataFilledDigitalObject(object);
View Full Code Here

Examples of eu.scape_project.planning.plato.bean.IServiceLoader.load()

        if (alternative.getAction() != null) {
            editableAlternativeActionInfo = ActionInfoFactory.createActionInfo(alternative.getAction());
            IServiceLoader serviceLoader = serviceLoaders.get(alternative.getAction().getActionIdentifier());
            if (serviceLoader != null) {
                serviceLoader.load(editableAlternativeActionInfo);
            }
        }
    }

    /**
 
View Full Code Here

Examples of eu.scape_project.planning.utils.ConfigurationLoader.load()

    /**
     * Reloads registry data, at the moment from an XML file
     */
    public void reload() throws MiniMeeException {
        ConfigurationLoader configurationLoader = new ConfigurationLoader();
        Configuration configuration = configurationLoader.load();
        if (configuration == null) {
            log.error("An error occurred while reading the properties file.");
            return;
        }
        String home = configuration.getString(MINIMEE_HOME);
View Full Code Here

Examples of eu.scape_project.pw.idp.utils.ConfigurationLoader.load()

    /**
     * Constructor.
     */
    public ReCaptchaValidator() {
        ConfigurationLoader configurationLoader = new ConfigurationLoader();
        config = configurationLoader.load();
    }

    @Override
    public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException {
        HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
View Full Code Here

Examples of flex2.compiler.CompilerSwcContext.load()

       
        // load SWCs
        CompilerSwcContext swcContext = new CompilerSwcContext(true);
        try
        {
            swcContext.load( compilerConfig.getLibraryPath(),
                             compilerConfig.getExternalLibraryPath(),
                             null,
                             compilerConfig.getIncludeLibraries(),
                             mappings,
                             I18nUtils.getTranslationFormat(compilerConfig),
View Full Code Here

Examples of flex2.compiler.util.OrderedProperties.load()

    if (in != null)
    {
      try
      {
        OrderedProperties p = new OrderedProperties();
        p.load(new BufferedReader(new InputStreamReader(in, encoding)));
        return p;
      }
      catch (IOException ex)
      {
        return 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.