logger.debug("OUT");
}
public SDKTemplate downloadDatamartFile(String folderName, String fileName) {
logger.debug("IN");
SDKTemplate toReturn = null;
try {
FileInputStream isDatamartFile = downloadSingleFile(folderName, fileName);
//defines a content to return
byte[] templateContent = SpagoBIUtilities.getByteArrayFromInputStream(isDatamartFile);
toReturn = new SDKTemplate();
toReturn.setFileName(fileName);
SDKObjectsConverter objConverter = new SDKObjectsConverter();
MemoryOnlyDataSource mods = objConverter.new MemoryOnlyDataSource(templateContent, null);
DataHandler dhSource = new DataHandler(mods);
toReturn.setContent(dhSource);
} catch(Exception e) {
return null;
}
logger.debug("OUT");