001package org.hl7.fhir.utilities;
002
003import java.io.IOException;
004import java.io.InputStream;
005
006import org.hl7.fhir.exceptions.FHIRException;
007
008public class MagicResources {
009
010  public static byte[] spdxCodesAsData() throws IOException {
011    ClassLoader classLoader = MagicResources.class.getClassLoader();
012    InputStream help = classLoader.getResourceAsStream("spdx.json");
013    return FileUtilities.streamToBytes(help);
014  }
015
016  public static CSVReader loadLanguagesCSV() throws FHIRException, IOException {
017    ClassLoader classLoader = MagicResources.class.getClassLoader();
018    InputStream source = classLoader.getResourceAsStream("languages.csv");
019    return new CSVReader(source);
020  }
021  
022  
023}