
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.ResourceloadJson(String version, InputStream stream) static org.hl7.fhir.r5.model.ResourceloadXml(String version, InputStream stream) static voidsaveJson(String version, org.hl7.fhir.r5.model.Resource resource, OutputStream stream) static voidsaveXml(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.FHIRFormatErrorIOException
-
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.FHIRExceptionIOException
-
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.FHIRFormatErrorIOException
-
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.FHIRExceptionIOException
-