Examples of open()


Examples of ucar.nc2.dt.TypedDatasetFactoryIF.open()


  public FeatureDataset open(FeatureType ftype, NetcdfDataset ncd, Object analysis, CancelTask task, Formatter errlog) throws IOException {
    TypedDatasetFactoryIF fac = (TypedDatasetFactoryIF) analysis;
    StringBuilder sbuff = new StringBuilder();
    TypedDataset result = fac.open(ncd, task, sbuff);
    errlog.format("%s", sbuff);
    return (FeatureDataset) result;
  }

  public FeatureType[] getFeatureType() {
View Full Code Here

Examples of ucar.nc2.iosp.grid.GridIndexToNC.open()

    version = Float.parseFloat(attr.get("index_version"));
    GridTableLookup lookup = (saveEdition == 2) ? getLookup2() : getLookup1();

    // make it into netcdf objects
    GridIndexToNC convert = new GridIndexToNC(raf);
    convert.open(index, lookup, saveEdition, ncfile, fmrcCoordSys, cancelTask);
    ncfile.finish();

    // may want to save index for debugging
    if (GridServiceProvider.debugOpen)
      gridIndexSave = index;
View Full Code Here

Examples of ui.composites.MainWindow.open()

      h.setLocationInfo(true);
      BasicConfigurator.configure(new FileAppender(h, "error_log.html",true));
     
      window = new MainWindow(disp);
      window.setBlockOnOpen(true);
      window.open();
      Display.getCurrent().dispose();
      RoomManager.colorset.cleanUp();
    } catch (Exception e) {
      org.apache.log4j.Logger fLog = org.apache.log4j.Logger.getLogger("log.init");
      fLog.error("Initialization failed.", e);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.container.ContainerFileIdentificationRequest.open()

        final InputStream in, final IdentificationResultCollection containerResults) throws IOException {
       
        final IdentificationRequest request = new ContainerFileIdentificationRequest(null);

        try {
            request.open(in);
           
            int maxBytesToScan = -1;
            ContainerSignatureMatchCollection matches =
                new ContainerSignatureMatchCollection(getContainerIdentifierInit().getContainerSignatures(),
                    getContainerIdentifierInit().getUniqueFileEntries(), maxBytesToScan);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.IdentificationRequest.open()

        RequestMetaData metaData = new RequestMetaData(file.length(), file.lastModified(), SCANFILE);
        RequestIdentifier identifier = new RequestIdentifier(resourceUri);
        identifier.setParentId(1L);
       
        IdentificationRequest request = new FileSystemIdentificationRequest(metaData, identifier);
        request.open(in);

        IdentificationResultCollection resultsCollection = droid.matchBinarySignatures(request);
        List<IdentificationResult> results = resultsCollection.getResults();
       
        assertEquals(EXPECTED_HITS, results.size());
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.resource.FileSystemIdentificationRequest.open()

        identifier.setParentId(1L);
        identifier.setParentPrefix("X");
        identifier.setAncestorId(1L);
       
        IdentificationRequest request = new FileSystemIdentificationRequest(metaData, identifier);
        request.open(in);

        Future<IdentificationResultCollection> future = submissionGateway.submit(request);
        future.get();

        // Wait for the done() method to complete.
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.resource.GZipIdentificationRequest.open()

        GzipCompressorInputStream gzin = null;
        try {
            gzin = new GzipCompressorInputStream(
                new FileInputStream(request.getSourceFile()));

            gzRequest.open(gzin);
            final IdentificationResultCollection gzResults =
                     binarySignatureIdentifier.matchBinarySignatures(gzRequest);
           
            final ResultPrinter resultPrinter = new ResultPrinter(binarySignatureIdentifier,
                    containerSignatureDefinitions, newPath, slash, slash1, true);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.resource.TarEntryIdentificationRequest.open()

                    if (!entry.isDirectory()) {
                        final RequestMetaData metaData = new RequestMetaData(1L, 2L, name);
                        final RequestIdentifier identifier = new RequestIdentifier(uri);
                        final TarEntryIdentificationRequest tarRequest =
                            new TarEntryIdentificationRequest(metaData, identifier, tmpDir);
                        tarRequest.open(in);
                        final IdentificationResultCollection tarResults =
                                binarySignatureIdentifier.matchBinarySignatures(tarRequest);
                        final ResultPrinter resultPrinter =
                                new ResultPrinter(binarySignatureIdentifier,
                                    containerSignatureDefinitions, newPath, slash, slash1, true);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.resource.ZipEntryIdentificationRequest.open()

                        final RequestMetaData metaData = new RequestMetaData(1L, 2L, name);
                        final RequestIdentifier identifier = new RequestIdentifier(uri);
                        final ZipEntryIdentificationRequest zipRequest =
                            new ZipEntryIdentificationRequest(metaData, identifier, tmpDir);
                       
                        zipRequest.open(in);
                        final IdentificationResultCollection zipResults =
                                binarySignatureIdentifier.matchBinarySignatures(zipRequest);
                        final ResultPrinter resultPrinter =
                                new ResultPrinter(binarySignatureIdentifier,
                                    containerSignatureDefinitions, newPath, slash, slash1, true);
View Full Code Here

Examples of uk.gov.nationalarchives.droid.gui.action.OpenContainingFolderAction.open()

    }
   
   
    private void openSelectedFolders() {
        OpenContainingFolderAction openAction = new OpenContainingFolderAction();
        openAction.open(getSelectedNodes());
    }

    /**
     * Updates widgets after a save operation.
     */
 
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.