Package io.apigee.trireme.util

Examples of io.apigee.trireme.util.CharsetConverter


    public void testBasic()
        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);
    }
View Full Code Here

TOP

Related Classes of io.apigee.trireme.util.CharsetConverter

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.