Code example for Charset

Methods: name

0
        throws Exception 
    { 
        FileOutputStream out=new FileOutputStream
            (TEST_FILE_PREFIX+fileName+".xml");
        out.write(("<?xml version=\"1.0\" encoding=\""+
                   charset.name()+"\"?><root>").getBytes(charset));
        out.write(data);
        out.write("</root>".getBytes(charset));
        out.close();
    } 
 
 
    @Test 
    public void valid() 
    { 
        singleValid(SPACE,SPACE_CHARS,SPACE_UCPS, 
                    SPACE_NAT,SPACE_UTF8, 
                    SPACE_UTF16BE,SPACE_UTF16LE, 
                    SPACE_UTF32BE,SPACE_UTF32LE); 
        singleValid(HELLO_EN,HELLO_EN_CHARS,HELLO_EN_UCPS, 
Connect your IDE to all the code out there  Get Codota for Java