예제 #1
0
 /**
  * parseXML
  *
  * @param stream a {@link java.io.InputStream} object.
  * @throws org.exolab.castor.xml.MarshalException if any.
  * @throws org.exolab.castor.xml.ValidationException if any.
  */
 public synchronized void parseXML(final InputStream stream)
     throws MarshalException, ValidationException {
   m_notifications = CastorUtils.unmarshal(Notifications.class, stream, true);
   oldHeader = m_notifications.getHeader();
 }
예제 #2
0
 /**
  * parseXML
  *
  * @param reader a {@link java.io.Reader} object.
  * @throws org.exolab.castor.xml.MarshalException if any.
  * @throws org.exolab.castor.xml.ValidationException if any.
  */
 @Deprecated
 public synchronized void parseXML(final Reader reader)
     throws MarshalException, ValidationException {
   m_notifications = CastorUtils.unmarshal(Notifications.class, reader, true);
   oldHeader = m_notifications.getHeader();
 }