use of org.openforis.idm.metamodel.xml.internal.unmarshal.SurveyUnmarshaller in project collect by openforis.
the class SurveyIdmlBinder method unmarshal.
public Survey unmarshal(InputStream is, boolean includeCodeListItems) throws IdmlParseException {
try {
SurveyUnmarshaller unmarshaller = new SurveyUnmarshaller(this, includeCodeListItems);
unmarshaller.parse(is, UTF_8);
Survey survey = unmarshaller.getSurvey();
onUnmarshallingComplete(survey);
return survey;
} catch (Exception e) {
throw new IdmlParseException(e);
}
}
use of org.openforis.idm.metamodel.xml.internal.unmarshal.SurveyUnmarshaller in project collect by openforis.
the class SurveyIdmlBinder method unmarshal.
public Survey unmarshal(Reader r, boolean includeCodeListItems) throws IdmlParseException {
try {
SurveyUnmarshaller unmarshaller = new SurveyUnmarshaller(this, includeCodeListItems);
unmarshaller.parse(r);
Survey survey = unmarshaller.getSurvey();
onUnmarshallingComplete(survey);
return survey;
} catch (Exception e) {
throw new IdmlParseException(e);
}
}
Aggregations