if ( clazz == null )
{
throw new IOException( I18n.err( I18n.ERR_600, encodable ) );
}
DecoderFactory factory = null;
try
{
factory = ( DecoderFactory ) clazz.newInstance();
}
catch ( IllegalAccessException iae )
{
throw new IOException( I18n.err( I18n.ERR_601, encodable ) );
}
catch ( InstantiationException ie )
{
throw new IOException( I18n.err( I18n.ERR_602, encodable ) );
}
Decoder decoder = factory.getDecoder();
return decoder.decode( plainText );
}