ex.printStackTrace();
}
}
Map<String, Object> decodedInput = null;
EntityEncodingManager em = new EntityEncodingManager(null, null);
if (format.equals("xml")) {
decodedInput = em.decodeData(IS, Formats.XML);
} else if (format.equals("json")) {
decodedInput = em.decodeData(IS, Formats.JSON);
} else if (format.equals("stream")) {
try {
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(requestGetter.getRequest());
while (iter.hasNext()) {