Code example for Charset

Methods: name

0
 
    public InputStream getInputStream()
        throws IOException 
    { 
        ByteArrayOutputStream o = new ByteArrayOutputStream();
        IOUtils.write( super.toCharArray(), o, charset.name() );
        return new ByteArrayInputStream( o.toByteArray() );
    } 
}