public class XMLHandler extends Object
| Constructor and Description |
|---|
XMLHandler(List<Class<? extends ElementBinding>> bindings) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObjectFromXML(File file) |
Object |
getObjectFromXML(Reader xmlReader) |
void |
setSchema(InputStream schemaStream) |
void |
validate(File file) |
void |
validate(Reader content) |
byte[] |
write(XMLNode rootNode) |
void |
write(XMLNode rootNode,
OutputStream outputStream) |
void |
write(XMLNode rootNode,
Writer writer) |
public XMLHandler(List<Class<? extends ElementBinding>> bindings) throws ParserConfigurationException, TransformerConfigurationException
public Object getObjectFromXML(File file) throws XMLParseException, FileNotFoundException, IOException
public Object getObjectFromXML(Reader xmlReader) throws IOException, XMLParseException
IOExceptionXMLParseExceptionpublic void setSchema(InputStream schemaStream) throws InvalidSchemaException
InvalidSchemaExceptionpublic void validate(File file) throws ValidationException, IOException
ValidationExceptionIOExceptionpublic void validate(Reader content) throws ValidationException, IOException
ValidationExceptionIOExceptionpublic byte[] write(XMLNode rootNode)
public void write(XMLNode rootNode, OutputStream outputStream) throws IOException
IOExceptionpublic void write(XMLNode rootNode, Writer writer) throws IOException
IOExceptionCopyright © 2013 BonitaSoft. All Rights Reserved.