Examples of readFromFile()


Examples of com.nardoz.restopengov.ckan.utils.IResourceFormatReader.readFromFile()

                    ElasticDatasetReaderResult callback = new ElasticDatasetReaderResult(resource, client);

                    IResourceFormatReader datasetReader = DatasetReader.read(resource, callback);

                    if(datasetReader != null) {
                        datasetReader.readFromFile("tmp/" + entry.getName());
                    }

                }

                zipinputstream.close();
View Full Code Here

Examples of com.nardoz.restopengov.utils.IFormatReader.readFromFile()

                    ICSVFetcherResult callback = new ElasticIndexer(client, file.type, file.id + "-" + id);
                    IFormatReader fileReader = FileReader.read(file, callback);

                    if(fileReader != null) {
                        fileReader.readFromFile(tmpFile.getPath());
                    }

                }

                zipinputstream.close();
View Full Code Here

Examples of net.sf.joafip.heapfile.record.entity.HeapRecord.readFromFile()

  private void readAndCheck(final HeapRecord heapRecordWrote,
      final byte[] expectedData) throws HeapException, RBTException {
    final HeapRecord heapRecordRead = new HeapRecord(
    /**/this,/* IHeapElementManager heapElementManager */
    /**/0/* long positionInFile */);
    heapRecordRead.readFromFile();
    assertHeapNodeEquals(heapRecordWrote, heapRecordRead, expectedData);
  }

  private void assertHeapNodeEquals(final HeapRecord heapRecordWrote,
      final HeapRecord heapRecordRead, final byte[] expectedData)
View Full Code Here

Examples of net.sf.joafip.kvstore.entity.IFileStorable.readFromFile()

    IFileStorable fileStorable = cache.get(positionInFile);
    if (fileStorable == null) {
      fileStorable = heapRecordFactory.createHeapRecord(this,
          positionInFile);
      cache.put(positionInFile, fileStorable);
      fileStorable.readFromFile();
    }
    return fileStorable;
  }

  @Override
View Full Code Here

Examples of net.sf.joafip.kvstore.entity.IFileStorable.readFromFile()

  private IFileStorable readHeapRecordInFile(final long positionInFile)
      throws HeapException {
    final IFileStorable heapRecord = heapRecordFactory.createHeapRecord(
        this, positionInFile);
    try {
      heapRecord.readFromFile();
    } catch (HeapException exception) {
      final String message = READ_HEAP_FILE_NODE_FAILED
          + "read record failed, position in file #" + positionInFile;
      LOGGER.fatal(message, exception);
      throw new HeapException(message, exception);
View Full Code Here

Examples of net.sf.joafip.kvstore.entity.IFileStorable.readFromFile()

    }
    if (heapRecord == null) {
      heapRecord = heapRecordFactory.createHeapRecord(this,
          positionInFile);
      try {
        heapRecord.readFromFile();
      } catch (HeapException exception) {
        final String message = READ_HEAP_FILE_NODE_FAILED
            + "read record at poistion " + positionInFile
            + " failed";
        LOGGER.fatal(message, exception);
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.diffengine.DiffableReader.readFromFile()

        logger.warn("testVCF1");
        DiffableReader vcfReader = engine.getReader("VCF");
        Assert.assertTrue(vcfReader.canRead(vcfFile));
        Assert.assertFalse(vcfReader.canRead(bamFile));

        DiffElement diff = vcfReader.readFromFile(vcfFile, -1);
        Assert.assertNotNull(diff);

        Assert.assertEquals(diff.getName(), vcfFile.getName());
        Assert.assertSame(diff.getParent(), DiffElement.ROOT);
View Full Code Here

Examples of org.broadinstitute.gatk.engine.walkers.diffengine.DiffableReader.readFromFile()

        logger.warn("testBAM");
        DiffableReader bamReader = engine.getReader("BAM");
        Assert.assertTrue(bamReader.canRead(bamFile));
        Assert.assertFalse(bamReader.canRead(vcfFile));

        DiffElement diff = bamReader.readFromFile(bamFile, -1);
        Assert.assertNotNull(diff);

        Assert.assertEquals(diff.getName(), bamFile.getName());
        Assert.assertSame(diff.getParent(), DiffElement.ROOT);
View Full Code Here

Examples of tvbrowserdataservice.file.ChannelList.readFromFile()

        IOUtilities.download(new URL(url), file);
        if (file.canRead() && file.length() > 0) {
          // try reading the file
          devplugin.ChannelGroup group = new devplugin.ChannelGroupImpl(getId(), getName(), null, getProviderName());
          ChannelList channelList = new ChannelList(group);
          channelList.readFromFile(file, mDataService);
          // ok, we can read it, so use this new file instead of the old
          File oldFile = new File(mDataDir, fileName);
          oldFile.delete();
          file.renameTo(oldFile);
          // Invalidate the channel list
View Full Code Here

Examples of tvbrowserdataservice.file.ChannelList.readFromFile()

      File channelFile = new File(mDataDir, getId() + "_" + ChannelList.FILE_NAME);
      if (channelFile.exists()) {
        try {
          devplugin.ChannelGroup group = new devplugin.ChannelGroupImpl(getId(), getName(), null, getProviderName());
          ChannelList channelList = new ChannelList(group);
          channelList.readFromFile(channelFile, mDataService);
          mAvailableChannelArr = channelList.createChannelArray();
        } catch (Exception exc) {
          mLog.log(Level.WARNING, "Loading channellist failed: " + channelFile.getAbsolutePath(), exc);
        }
      }
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.