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
IOException
XMLParseException
public void setSchema(InputStream schemaStream) throws InvalidSchemaException
InvalidSchemaException
public void validate(File file) throws ValidationException, IOException
ValidationException
IOException
public void validate(Reader content) throws ValidationException, IOException
ValidationException
IOException
public byte[] write(XMLNode rootNode)
public void write(XMLNode rootNode, OutputStream outputStream) throws IOException
IOException
public void write(XMLNode rootNode, Writer writer) throws IOException
IOException
Copyright © 2013 BonitaSoft. All Rights Reserved.