Package org.hl7.fhir.r4.formats
Class FormatUtilities
java.lang.Object
org.hl7.fhir.r4.formats.FormatUtilities
- Direct Known Subclasses:
ParserBase
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Manager.FhirFormat
determineFormat
(byte[] source) static Manager.FhirFormat
determineFormat
(byte[] source, int scanLength) static boolean
static Resource
loadFile
(InputStream source) static Resource
static Resource
loadFileTight
(InputStream source) static Resource
loadFileTight
(String path) static String
static ParserBase
makeParser
(String format) static ParserBase
makeParser
(Manager.FhirFormat format) protected String
toString
(boolean value) static String
toString
(byte[] value) protected String
toString
(int value) protected String
protected String
toString
(BigDecimal value) protected String
-
Field Details
-
ID_REGEX
- See Also:
-
FHIR_NS
- See Also:
-
XHTML_NS
- See Also:
-
NS_XSI
- See Also:
-
-
Constructor Details
-
FormatUtilities
public FormatUtilities()
-
-
Method Details
-
toString
-
toString
-
toString
-
toString
-
toString
-
toString
-
isValidId
-
makeId
-
makeParser
-
makeParser
-
determineFormat
public static Manager.FhirFormat determineFormat(byte[] source) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
determineFormat
public static Manager.FhirFormat determineFormat(byte[] source, int scanLength) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
loadFile
public static Resource loadFile(String path) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
loadFile
public static Resource loadFile(InputStream source) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
loadFileTight
public static Resource loadFileTight(String path) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
loadFileTight
public static Resource loadFileTight(InputStream source) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-