use of org.hl7.fhir.utilities.CSFileInputStream in project org.hl7.fhir.core by hapifhir.
the class Translations method load.
/**
* Load from the XML translations file maintained by the FHIR project
*
* @param filename
* @throws IOException
* @throws SAXException
* @throws FileNotFoundException
* @throws ParserConfigurationException
* @throws Exception
*/
public void load(String filename) throws FileNotFoundException, SAXException, IOException, ParserConfigurationException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
loadMessages(builder.parse(new CSFileInputStream(filename)));
}
use of org.hl7.fhir.utilities.CSFileInputStream in project org.hl7.fhir.core by hapifhir.
the class Translations method load.
/**
* Load from the XML translations file maintained by the FHIR project
*
* @param filename
* @throws IOException
* @throws SAXException
* @throws FileNotFoundException
* @throws ParserConfigurationException
* @throws Exception
*/
public void load(String filename) throws FileNotFoundException, SAXException, IOException, ParserConfigurationException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
loadMessages(builder.parse(new CSFileInputStream(filename)));
}
Aggregations