Examples of convert()


Examples of com.sun.grizzly.util.buf.C2BConverter.convert()

            message= HttpMessages.getMessage(res.getStatus());
        } else {
            message = message.replace('\n', ' ').replace('\r', ' ');
        }
        tempMB.setString( message );
        c2b.convert( tempMB );
        outputMsg.appendBytes(tempMB);

        // XXX add headers
       
        MimeHeaders headers=res.getMimeHeaders();
View Full Code Here

Examples of com.sun.xml.fastinfoset.tools.XML_SAX_FI.convert()

        ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
        BufferedOutputStream bufferedStream = new BufferedOutputStream(byteStream);
        StAXDocumentParser sr = null;
        try {
            XML_SAX_FI convertor = new XML_SAX_FI();
            convertor.convert(xmlfile, bufferedStream);

            ByteArrayInputStream byteInputStream = new ByteArrayInputStream(byteStream.toByteArray());
            InputStream document = new BufferedInputStream(byteInputStream);
            sr = new StAXDocumentParser();
            sr.setInputStream(document);
View Full Code Here

Examples of com.sun.xml.internal.fastinfoset.tools.XML_SAX_FI.convert()

        ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
        BufferedOutputStream bufferedStream = new BufferedOutputStream(byteStream);
        StAXDocumentParser sr = null;
        try {
            XML_SAX_FI convertor = new XML_SAX_FI();
            convertor.convert(xmlfile, bufferedStream);

            ByteArrayInputStream byteInputStream = new ByteArrayInputStream(byteStream.toByteArray());
            InputStream document = new BufferedInputStream(byteInputStream);
            sr = new StAXDocumentParser();
            sr.setInputStream(document);
View Full Code Here

Examples of com.tacitknowledge.flip.aspectj.converters.Converter.convert()

            Converter converter = getConvertersHandler().getConverter(outputClass);
            if (converter == null) {
                return getUntouchedDisabledValue(outputClass, value);
            }
           
            return converter.convert(value, outputClass);
        }
    }
   
    /**
     * Returns the value if it cannot be converted or evaluated as value expression.
View Full Code Here

Examples of com.thinkaurelius.titan.core.AttributeHandler.convert()

    @Override
    public <V> V convert(Class<V> datatype, Object value) {
        Preconditions.checkNotNull(datatype);
        Preconditions.checkNotNull(value);
        AttributeHandler handler = handlers.get(datatype);
        if (handler!=null) return (V)handler.convert(value);
        else return null;
    }
}
View Full Code Here

Examples of com.tinkerpop.rexster.gremlin.converter.ConsoleResultConverter.convert()

        return msgPackScriptResponseMessage;
    }

    public static List<String> convertResultToConsoleLines(final Object result) throws Exception {
        final ConsoleResultConverter converter = new ConsoleResultConverter(new StringWriter());
        return converter.convert(result);
    }

    private static ScriptResponseMessage formatForConsoleChannel(final ScriptRequestMessage specificMessage, final RexProSession session, final Object result) throws Exception {
        final ScriptResponseMessage consoleScriptResponseMessage = new ScriptResponseMessage();
View Full Code Here

Examples of com.tistory.devyongsik.crescent.search.JsonFormConverter.convert()

    result.add(row);
    result.add(row2);
   
   
    JsonFormConverter converter = new JsonFormConverter();
    String jsonForm = converter.convert(result);
   
    Assert.assertEquals("[{\"title\":\"타이틀\",\"dscr\":\"상세내용\"}," +
        "{\"title\":\"타이틀22\",\"dscr\":\"상세내용\"}]", jsonForm);
  }
 
View Full Code Here

Examples of com.tuscanyscatours.currencyconverter.CurrencyConverter.convert()

        String ior = "corbaname::localhost:5080#CurrencyConverterCORBAService";
        Object obj = orb.string_to_object(ior);
        CurrencyConverter converter = CurrencyConverterHelper.narrow(obj);

        System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP"));
        System.out.println("100 USD = " + converter.convert("USD", "GBP", 100.0) + "GBP");
    }
}
View Full Code Here

Examples of com.volantis.map.ics.imageprocessor.convertor.ImageConvertor.convert()

                "images/circusshow4256.bmp");
        RenderedOp sourceImage = JAI.create("url", input);
        ImageConvertor cnv =
            ImageConvertorFactory.getInstance().
            getImageConvertor(ImageRule.TRUECOLOUR);
        sourceImage = cnv.convert(sourceImage, params);
        RenderedOp[] watermarkedImage =
            tool.process(new RenderedOp[]{sourceImage}, params);

        assertNotNull("The RenderedOp shouldn't be null", watermarkedImage);
View Full Code Here

Examples of com.wesabe.api.util.money.Money.convert()

  public static class One_Dollar_Converted_Into_Dollars {
    @Test
    public void shouldBeOneDollar() throws Exception {
      CurrencyExchangeRateMap exchangeRates = new CurrencyExchangeRateMap();
      Money oneDollar = new Money(decimal("1.00"), USD);
      assertEquals(oneDollar, oneDollar.convert(exchangeRates, USD, now()));
    }
  }

  public static class One_Dollar_Converted_Into_Euros {
    @Test
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.