return createDocument(chars, decoder);
}
public static XMLDocument createDocument(InputStream input, String charset, XMLDataDecoder decoder) throws Exception {
DataReader reader = new DataReader();
return createDocument(reader.loadInputStream(input).toByteArray(), charset, decoder);
}
public static XMLDocument createDocument(File file, String charset, XMLDataDecoder decoder) throws Exception {
DataReader reader = new DataReader();
return createDocument(reader.load(file), charset, decoder);