Examples of importFile()


Examples of com.boundlessgeo.geoserver.api.controllers.ImportController.importFile()

        request.setMethod("post");

        createMultiPartFormContent(request, "form-data; name=\"upload\"; filename=\"point.zip\"", "application/zip",
                IOUtils.toByteArray(getClass().getResourceAsStream("point.shp.zip")));

        JSONObj result = ctrl.importFile("gs", request);

        assertEquals(1, result.array("imported").size());
        JSONObj obj = result.array("imported").object(0);

        assertEquals("gs", obj.object("layer").str("workspace"));
View Full Code Here

Examples of com.cxy.redisclient.service.ImportService.importFile()

public class ImportTest extends TestCase {

  public void testImportFile() throws IOException {
    ImportService service = new ImportService("C:\\Users\\xinyu\\Desktop\\export", 6, 12);
    service.importFile();
  }

}
View Full Code Here

Examples of com.cxy.redisclient.service.ImportService.importFile()

    String file = dialog.open();
    if (file != null) {
      ImportService service = new ImportService(file, cinfo.getId(),
          cinfo.getDb());
      try {
        service.importFile();
      } catch (IOException e) {
        throw new RuntimeException(e.getMessage());
      }

      dbContainerTreeItemSelected(treeItem, true);
View Full Code Here

Examples of com.ilegra.core.ImportFile.importFile()

        ImportFile importer = new ImportFile();
       
        if (importer.checkExtension(fullPath.toString())) {
          importer.setDir(fullPath.toString());
          DomainResults result = importer.importFile();
          result.saveResult(fullPath.toFile().getName().toString().replace(".dat", ""), dirOut);
        }
      }
      boolean valid = key.reset();
      if (!valid) {
View Full Code Here

Examples of com.visitrend.ndvis.dataimport.DataImport.importFile()

         String fileName = toOpen.getAbsolutePath();
         System.out.println("Chosen file: " + fileName);
         // get a reference to the DataImport implementation
         DataImport impl = Lookup.getDefault().lookup(DataImport.class);
         // import the CSV file
         impl.importFile(fileName);
      }
   }
}
View Full Code Here

Examples of cx.fbn.nevernote.utilities.FileImporter.importFile()

     
        logger.log(logger.LOW, "File importing is a file: " +list.get(i).isFile());
        logger.log(logger.LOW, "File importing is a valid: " +importer.isValidType());
        if (list.get(i).isFile() && importer.isValidType()) {
     
          if (!importer.importFile()) {
            // If we can't get to the file, it is probably locked.  We'll try again later.
            logger.log(logger.LOW, "Unable to save externally edited file.  Saving for later.");
            importFilesKeep.add(list.get(i).absoluteFilePath());
          } else {
View Full Code Here

Examples of cx.fbn.nevernote.utilities.FileImporter.importFile()

     
      logger.log(logger.LOW, "File importing is a file: " +list.get(i).isFile());
      logger.log(logger.LOW, "File importing is a valid: " +importer.isValidType());
      if (list.get(i).isFile() && importer.isValidType()) {
   
        if (!importer.importFile()) {
          // If we can't get to the file, it is probably locked.  We'll try again later.
          logger.log(logger.LOW, "Unable to save externally edited file.  Saving for later.");
          importFilesKeep.add(list.get(i).absoluteFilePath());
        } else {
   
View Full Code Here

Examples of org.fluxtream.core.connectors.FileUploadSupport.importFile()

            @Override
            public void run() {
                final AbstractUpdater bean = beanFactory.getBean(connector.getUpdaterClass());
                FileUploadSupport handler = (FileUploadSupport) bean;
                try {
                    handler.importFile(apiKey, f);
                }
                catch (Exception e) {
                    e.printStackTrace();
                    notificationsService.addExceptionNotification(guestId, Notification.Type.ERROR, "There was a problem importing your " + connector.prettyName() + " data.<br>" +
                                                                                                    "Please check the type and format of your file.", ExceptionUtils.getStackTrace(e));
View Full Code Here

Examples of org.gephi.desktop.importer.api.ImportControllerUI.importFile()

                    }
                    return;
                } else {
                    ImportControllerUI importController = Lookup.getDefault().lookup(ImportControllerUI.class);
                    if (importController.getImportController().isFileSupported(FileUtil.toFile(fileObject))) {
                        importController.importFile(fileObject);
                    } else {
                        NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(CommandLineProcessor.class, "CommandLineProcessor.fileNotSupported"), NotifyDescriptor.WARNING_MESSAGE);
                        DialogDisplayer.getDefault().notify(msg);
                    }
                }
View Full Code Here

Examples of org.gephi.desktop.importer.api.ImportControllerUI.importFile()

                            DialogDisplayer.getDefault().notify(msg);
                        }
                    } else {
                        ImportControllerUI importController = Lookup.getDefault().lookup(ImportControllerUI.class);
                        if (importController.getImportController().isFileSupported(FileUtil.toFile(fileObject))) {
                            importController.importFile(fileObject);
                        } else {
                            return false;
                        }
                    }
                    return 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.