Examples of convert()


Examples of fi.luomus.commons.utils.CoordinateConverter.convert()

  private static void coordinateConverterExample() {
    try {
      CoordinateConverter converter = new CoordinateConverter();
      converter.setYht_leveys("6666666");
      converter.setYht_pituus("3333333");
      converter.convert();
      System.out.println();
      System.out.println("Uniform: 6666666 : 3333333 -> EUREF: " + converter.getEur_leveys() + " : " + converter.getEur_pituus());
      System.out.println();
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of flex.messaging.io.TypeMarshaller.convert()

                if (marshaller != null)
                {
                    try
                    {
                        obj = marshaller.convert(param, desiredParamTypes[i]);
                    }
                    catch (MessageException ex)
                    {
                        currentMatch.paramTypeConversionFailure = ex;
                        break;
View Full Code Here

Examples of gluebooster.spring.convert.HandlerMappingConversionService.convert()

      BoostedNode mappingNode = BookUtils.createChapter(documentationRoot, mapping.getClass().getSimpleName());
     
     
      HandlerMappingConversionService conversion = HandlerMappingConversionService.createToStringMapConverter();
      if (conversion.canConvert(mapping.getClass(), Map.class)){
        Map<String, ?>mappings = conversion.convert(mapping, Map.class);
        for (String key: mappings.keySet()){
          BookUtils.createDiv(mappingNode, key);
        }
      }
    }
View Full Code Here

Examples of hzg.wpn.util.conveter.TypeConverter.convert()

                String key = !propertyDesc.value().isEmpty() ? propertyDesc.value() : fld.getName();

                if (properties.get(key) == null) continue;

                Object src = properties.get(key);
                fld.set(container, converter.convert(src));
            }

            return container;
        } catch (InstantiationException e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of ij.plugin.filter.ThresholdToSelection.convert()

      //ip2 = new ByteProcessor(bi);
    }
    //new ImagePlus("ip2", ip2.duplicate()).show();
    ip2.setThreshold(255, 255, ImageProcessor.NO_LUT_UPDATE);
    ThresholdToSelection tts = new ThresholdToSelection();
    Roi roi2 = tts.convert(ip2);
    imp.setRoi(roi2);
    Roi.previousRoi = (Roi)roi.clone();
  }
 
  void areaToLine(ImagePlus imp) {
View Full Code Here

Examples of ij.process.MedianCut.convert()

   **************************************************************************/

  ImageProcessor reduceColors(ImageProcessor ip) {
    MedianCut mc = new MedianCut((int[]) ip.getPixels(), ip.getWidth(), ip
        .getHeight());
    Image img = mc.convert(256);
    return (new ByteProcessor(img));
  }

}
View Full Code Here

Examples of io.apigee.trireme.util.CharsetConverter.convert()

        throws IOException
    {
        final String from = "Hello, World!";
        ByteBuffer in = ByteBuffer.wrap(from.getBytes("utf8"));
        CharsetConverter c = new CharsetConverter("utf8", "ascii");
        ByteBuffer out = c.convert(in, true);
        String result = toString(out, "ascii");
        assertEquals(from, result);
    }

    private String toString(ByteBuffer bb, String cs)
View Full Code Here

Examples of io.crate.lucene.LuceneQueryBuilder.convert()

                cacheRecycler,
                pageCacheRecycler,
                bigArrays
        );
        LuceneQueryBuilder builder = new LuceneQueryBuilder(functions, searchContext, indexService.cache());
        LuceneQueryBuilder.Context ctx = builder.convert(whereClause);
        searchContext.parsedQuery(new ParsedQuery(ctx.query(), ImmutableMap.<String, Filter>of()));
        Float minScore = ctx.minScore();
        if (minScore != null) {
            searchContext.minimumScore(minScore);
        }
View Full Code Here

Examples of java.util.concurrent.TimeUnit.convert()

                            intr = true;
                        }
                    } else {
                        final TimeUnit timeUnit = keepAliveTimeUnit;
                        final long time = keepAliveTime;
                        final long remaining = time - timeUnit.convert(elapsed, TimeUnit.MILLISECONDS);
                        if (remaining <= 0L && (allowCoreThreadTimeout || threadCount > coreThreadLimit)) {
                            // the timeout has expired
                            return pollTask();
                        }
                        try {
View Full Code Here

Examples of java2opSem.Convert2opSem.convert()

      if (args.length==0)
        System.err.println("Give a file name to convert");
      else {
        System.out.println("Starting conversion of file " + args[0]);
        Convert2opSem c = new Convert2opSem(args[0]);
        c.convert();
      }
    } catch (ExceptionJava2opSem e) {
      System.err.println(e.getMessage());
    }
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.