Examples of Info


Examples of org.geotools.coverage.io.geotiff.GeoTiffAccess.Info

   * org.opengis.util.ProgressListener)
   */
  public List<BoundingBox> getHorizontalDomain(boolean global,
      ProgressListener listener) throws IOException {
    ensureNotDisposed();
    Info info = getInfo( listener );
    BoundingBox bbox = info.getBounds();
    return Collections.singletonList( bbox);
  }
View Full Code Here

Examples of org.im4java.core.Info

    FileOutputStream jp2Out = new FileOutputStream(jp2);

    IOUtils.copy(jp2In, jp2Out);

    Info info = new Info(jp2.getAbsolutePath(), true);
    Assert.assertEquals("JP2", info.getImageFormat());

    jp2.delete();
  }
View Full Code Here

Examples of org.im4java.core.Info

  public static int[] tiffToJp2Size(String path) {
    int height = 0;
    int width = 0;
    try {
      Info info = new Info(path, true);

      int tiffHeight = info.getImageHeight();
      height = tiffHeight;
      int tiffWidth = info.getImageWidth();
      width = tiffWidth;
      if (tiffHeight > DEFAULT_MAX_HEIGHT
          || tiffWidth > DEFAULT_MAX_WIDTH) {
        if (tiffHeight > tiffWidth) {
          double ratio = tiffHeight / DEFAULT_MAX_HEIGHT;
View Full Code Here

Examples of org.im4java.core.Info

    } catch (IOException e) {
      e.printStackTrace();
    }

    try {
      Info info = new Info(jp2.getAbsolutePath(), true);
      Assert.assertEquals("JP2", info.getImageFormat());
    } catch (InfoException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.jboss.test.hibernate.timers.interfaces.Info

         TimersID id = new TimersID("testCurrentSession", "*:ejb=None");
         Timers timer = new Timers(id);
         Date now = new Date();
         Long interval = new Long(5*1000);
         Key key = new Key("key2", 123456789);
         Info info = new Info(System.getProperties());
         timer.setInitialDate(now);
         timer.setInstancePK(serialize(key));
         timer.setTimerInterval(interval);
         timer.setInfo(serialize(info));

View Full Code Here

Examples of org.jetbrains.idea.svn.info.Info

    public FileRevisionHistory getFileHistory(ScanMode scanMode, final ProgressIndicator progressIndicator)
            throws SVNException {
        boolean retrievedWithErrors = false;
        final CollectedRevisions revisions = new CollectedRevisions();
        Info info = svn.getInfo(file);
        if (info == null) {
            throw new SVNException(SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "Error retrieving SVN information for file"));
        }
        SVNRevision committedRevision = info.getRevision();
        if (committedRevision == null) {
            throw new SVNException(SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "Error determining current file revision"));
        }
        boolean isDirectory = info.getKind() != NodeKind.FILE;
        final long currentRevision = committedRevision.getNumber();
        String repoRoot = info.getRepositoryRootURL().toString();
        final String relPath = info.getURL().toString().substring(repoRoot.length());

        SVNRepository repo = svn.getSvnKitManager().createRepository(repoRoot);
        boolean mergeInfoAvailable = repo.hasCapability(SVNCapability.MERGE_INFO);

        showProgressInfo(progressIndicator, "Getting latest repository revision");
View Full Code Here

Examples of org.joy.Joy.Info

    updaterActive();
  }

  private void setupDeviceOptions(int joy0Device, int joy1Device) {
    // Determine auto options
    Info auto0 = devices.size() > 0 ? devices.get(0) : null;
    Info auto1 = devices.size() > 1 ? devices.get(1) : null;
    // List all options for joystick0 and joystick1
    joystick0DeviceOptions = new Vector<DeviceOption>();
    joystick0DeviceOptions.add(new DeviceOption(Parameters.JOY_DEVICE_AUTO, auto0));
    joystick0DeviceOptions.add(new DeviceOption(Parameters.JOY_DEVICE_NONE, null));
    joystick1DeviceOptions = new Vector<DeviceOption>();
View Full Code Here

Examples of org.jtester.annotations.Tracer.Info

    beans.clear();
    beans.add(testClazz);
    tracers.clear();

    Info type = tracer == null ? Info.TOJSON : tracer.info();
    stringTypes.set(type);
  }
View Full Code Here

Examples of org.mitre.sipchat.model.Info

  for ( int i = 0; i < contacts.length; i++ ) {
      StringPresentity.addAlias( fromID, new Presentity( contacts[i] ) );
  }

  // TODO: get the dates right
  Info userInfo = new Info( fromID, PresenceAgent.statusMessage( code ),
          new Date(), new Date(), 0 );

  return userInfo;
    }
View Full Code Here

Examples of org.netbeans.server.uihandler.statistics.OSAndJVMTypes.Info

            Object[] params = rec.getParameters();
            if (
                params != null && params.length >= 2 &&
                !params[1].equals("text")
            ) {
                return new Info(params);
            }
        }
        return newData();
    }
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.