Esempio n. 1
0
 /**
  * Instantiates an object from xml input that contains the serialized output of that object.
  *
  * @param input Reader type
  * @return Instantiated object
  * @throws XMLUtilityException
  */
 public static Object fromXML(Reader input) throws XMLUtilityException {
   Object beanObject;
   beanObject = unmarshaller.fromXML(input);
   return beanObject;
 }
Esempio n. 2
0
 /**
  * Instanties an object from an xml File that contains the serialized output of that object.
  *
  * @param xmlFile
  * @return
  * @throws XMLUtilityException
  */
 public static Object fromXML(File xmlFile) throws XMLUtilityException {
   Object beanObject = null;
   beanObject = unmarshaller.fromXML(xmlFile);
   return beanObject;
 }