Package org.apache.metamodel.util

Examples of org.apache.metamodel.util.UnicodeWriter


public class UnicodeWriterTest {

    @Test
    public void test() throws IOException {
        File file = new File("target/unicodeWriterTest.txt");
        Writer writer = new UnicodeWriter(file, "UTF-8");
        writer.write("Hello");
        writer.close();

        FileInputStream is = new FileInputStream(file);
        byte[] bytes = new byte[100];
        assertEquals(8, is.read(bytes));
View Full Code Here

TOP

Related Classes of org.apache.metamodel.util.UnicodeWriter

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.