Package ucar.jpeg.jj2000.j2k.codestream

Examples of ucar.jpeg.jj2000.j2k.codestream.HeaderInfo$COM


    // set the attendees of the event
    Participant attendee1 = new Participant("Attendee1",
        "attendee1@attendee.com", ParticipantType.REQUIRED);
    List<Participant> list = new ArrayList<Participant>();
    list.add(attendee1);
    Invite invite = new EmailInviteImpl(props);
    Date startDate = new Date(System.currentTimeMillis() + 600000);
    Date endDate = new Date(startDate.getTime() + 1800000);
    invite.sendInvite("Testing Event", "Testing dummy event", from, list,
        startDate, endDate, "Delhi");
  }
View Full Code Here


  @Override
  public void validate() throws ConfigurationException {
    LOG.info("Validating configuration properties for email");
    if (properties == null) {
      throw new ConfigurationException("Properties can not be null");
    }
    if (properties.get("mail.smtp.host") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.host is not given");
    }
    if (properties.get("mail.smtp.port") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.port is not given");
    }
    if ("true".equals(properties.get("mail.smtp.auth"))) {
      if (properties.get("username") == null) {
        throw new ConfigurationException("Username is not given");
      }
      if (properties.get("password") == null) {
        throw new ConfigurationException("Password is not given");
      }
    }
  }
View Full Code Here

  @Override
  public void validate() throws ConfigurationException {
    LOG.info("Validating configuration properties for email");
    if (properties == null) {
      throw new ConfigurationException("Properties can not be null");
    }
    if (properties.get(CLIENT_ID) == null) {
      throw new ConfigurationException(CLIENT_ID + "can not be null");
    }
    if (properties.get(CLIENT_SECRET) == null) {
      throw new ConfigurationException(CLIENT_SECRET + "can not be null");
    }
    if (properties.get(ACCESS_TOKEN) == null) {
      throw new ConfigurationException(ACCESS_TOKEN + "can not be null");
    }
    if (properties.get(REFRESH_TOKEN) == null) {
      throw new ConfigurationException(REFRESH_TOKEN + "can not be null");
    }
    if (properties.get(EXPIRY_TIME_IN_MILLIS) == null) {
      throw new ConfigurationException(EXPIRY_TIME_IN_MILLIS
          + "can not be null");
    }

  }
View Full Code Here

    List<Participant> list = new ArrayList<Participant>();
    list.add(attendee1);
    Date startDate = new Date(System.currentTimeMillis() + 30000);
    Date endDate = new Date(startDate.getTime() + 1800000);
    Invite invite = new GoogleInviteImpl(props);
    invite.sendInvite("Testing Event", "Testing dummy event", from, list,
        startDate, endDate, "Delhi");
  }
View Full Code Here

    int E = drs.getBinaryScaleFactor();
    //System.out.println( "DS E=" + E );
    float EE = (float) java.lang.Math.pow((double) 2.0, (double) E);
    //System.out.println( "DS EE=" + EE );

    Grib2JpegDecoder g2j = null;
    int numberPoints = 0;
    try {
      if (nb != 0) {  // there's data to decode
        String[] argv = new String[4];
        argv[0] = "-rate";
        argv[1] = Integer.toString(nb);
        argv[2] = "-verbose";
        argv[3] = "off";
        //argv[ 4 ] = "-debug" ;
        //argv[ 2 ] = "-nocolorspace" ;
        //argv[ 3 ] = "-Rno_roi" ;
        //argv[ 4 ] = "-cdstr_info" ;
        //argv[ 5 ] = "-verbose" ;
        g2j = new Grib2JpegDecoder(argv);
        // how jpeg2000.jar use to decode, used raf
        //g2j.decode(raf, length - 5);
        // jpeg-1.0.jar added method to have the data read first
        byte[] buf = new byte[ length - 5 ];
        raf.read( buf );
        g2j.decode( buf );
      }
      numberPoints = gds.getGdsVars().getNumberPoints();
      //System.out.println( "DS GDS NumberPoints=" +  gds.getNumberPoints() );
      data = new float[numberPoints];
      boolean[] bitmap = bms.getBitmap();
View Full Code Here

        float [][] out = new float [3][];
        float [][] in  = new float [3][];

        for (i=0;i<3;++i) {
            in[i= inblk [i] .getDataFloat();
            outblk[i] = new DataBlkFloat ();
            copyGeometry (outblk[i],inblk[i]);
            outblk[i].offset = inblk[i].offset;
            out[i] = new float [length];
            outblk[i].setData (out[i]); }
View Full Code Here

        int [][] out = new int [3][];
        int [][] in  = new int [3][];

        for (i=0;i<3;++i) {
            in[i= inblk [i] .getDataInt();
            outblk[i] = new DataBlkInt ();
            copyGeometry (outblk[i],inblk[i]);
            outblk[i].offset = inblk[i].offset;
            out[i] = new int [length];
            outblk[i].setData (out[i]); }
View Full Code Here

TOP

Related Classes of ucar.jpeg.jj2000.j2k.codestream.HeaderInfo$COM

Copyright © 2018 www.massapicom. 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.