Examples of loadFromFile()


Examples of ca.carleton.gcrc.gpx.GpxFactory.loadFromFile()

    FileConversionContext approvedContext = attDescription.getContext();
   
    GpxFactory factory = new GpxFactory();
    try {
      Gpx gpx = factory.loadFromFile(attDescription.getMediaFile());
      if( null == gpx ) {
        throw new Exception("Conversion returns null object");
      }
     
      JSONObject doc = approvedContext.getDoc();
View Full Code Here

Examples of ca.carleton.gcrc.gpx.GpxFactory.loadFromFile()

  public FileConversionMetaData getFileMetaData(File file) {
    FileConversionMetaData result = new FileConversionMetaData();
   
    GpxFactory factory = new GpxFactory();
    try {
      Gpx gpx = factory.loadFromFile(file);
      if( null != gpx ) {
        result.setFileConvertable(true);
        result.setMimeType("application/xml");
        result.setFileClass("gpx");
      }
View Full Code Here

Examples of ca.carleton.gcrc.gpx.GpxFactory.loadFromFile()

    AttachmentDescriptor attDescription = approvedContext.getAttachmentDescription();
   
    GpxFactory factory = new GpxFactory();
    try {
      Gpx gpx = factory.loadFromFile(attDescription.getMediaFile());
      if( null == gpx ) {
        throw new Exception("Conversion returns null object");
      }
     
      JSONObject doc = approvedContext.getDoc();
View Full Code Here

Examples of com.configloader.ConfigLoader.LoadFromFile()

   * Конструктор. <br>
   * Constructor.
   */
  public Connection() {
    ConfigLoader confGlobal = new ConfigLoader("org.apache.xerces.parsers.SAXParser");
    confGlobal.LoadFromFile("xml/confGlobal.xml");

    String instanceName = confGlobal.getTagValue("Root.SqlServer.InstanceName");
    instanceName = (instanceName != null && !instanceName.isEmpty())
        ? ("\\" + instanceName) : "";
   
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.ServiceRegistry.loadFromFile()

    //verify saved
    assertTrue(file.exists());
   
    FileInputStream in = new FileInputStream(file);

    registry.loadFromFile(in);
    //verify service is loaded
    verifyCorrectService(registry.getService(id, null), service);
  }
 
  @Test
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.ServiceRegistry.loadFromFile()

    //verify saved
    assertTrue(file.exists());
   
    FileInputStream in = new FileInputStream(file);

    registry.loadFromFile(in);
    //verify service is loaded
    ReconciliationService service2 = registry.getService(id, null);
    verifyCorrectService(service2, service);
    //verify service is not initialized
    ReconciliationRequest request = new ReconciliationRequest("query", 10);
View Full Code Here

Examples of com.salesforce.ide.core.model.Component.loadFromFile()

                    + file.getProjectRelativePath().toPortableString());
        }

        component.setFileResource(file);
        try {
            component.loadFromFile(includeBody);
        } catch (Exception e) {
            throw new FactoryException(e);
        }

        if (Utils.isEmpty(component.getPackageName())) {
View Full Code Here

Examples of com.salesforce.ide.core.model.Component.loadFromFile()

            throw new FactoryException("Unable to find composite file from path '" + compositeComponentFilePath + "'");
        }

        compositeComponent.setFileResource(compositeComponentFile);
        try {
            compositeComponent.loadFromFile(includeBody);
        } catch (Exception e) {
            throw new FactoryException(e);
        }

        if (logger.isDebugEnabled()) {
View Full Code Here

Examples of com.salesforce.ide.core.model.Component.loadFromFile()

            return compositeComponent;
        }

        compositeComponent.setFileResource(compositeComponentFile);
        try {
            compositeComponent.loadFromFile(includeBody);
        } catch (Exception e) {
            throw new FactoryException(e);
        }

        if (logger.isDebugEnabled()) {
View Full Code Here

Examples of com.santiagolizardo.beobachter.beans.LogTypeManager.loadFromFile()

          btnRename.setEnabled(false);
          btnRemove.setEnabled(false);
        } else {
          LogType logType = (LogType) lstTypes.getSelectedValue();
          LogTypeManager logTypes = LogTypeManager.getInstance();
          logType = logTypes.loadFromFile(logType
              .getName());

          editionPanel.setLogType(logType);
          btnRename.setEnabled(true);
          btnRemove.setEnabled(true);
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.