
Package org.hl7.fhir.convertors.loaders
Class XVersionLoader
java.lang.Object
org.hl7.fhir.convertors.loaders.XVersionLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hl7.fhir.r5.model.Resource
loadJson
(String version, InputStream stream) static org.hl7.fhir.r5.model.Resource
loadXml
(String version, InputStream stream) static void
saveJson
(String version, org.hl7.fhir.r5.model.Resource resource, OutputStream stream) static void
saveXml
(String version, org.hl7.fhir.r5.model.Resource resource, OutputStream stream)
-
Constructor Details
-
XVersionLoader
public XVersionLoader()
-
-
Method Details
-
loadXml
public static org.hl7.fhir.r5.model.Resource loadXml(String version, InputStream stream) throws org.hl7.fhir.exceptions.FHIRFormatError, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
IOException
-
loadJson
public static org.hl7.fhir.r5.model.Resource loadJson(String version, InputStream stream) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
saveXml
public static void saveXml(String version, org.hl7.fhir.r5.model.Resource resource, OutputStream stream) throws org.hl7.fhir.exceptions.FHIRFormatError, IOException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
IOException
-
saveJson
public static void saveJson(String version, org.hl7.fhir.r5.model.Resource resource, OutputStream stream) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-