Package org.hl7.fhir.r4.formats
Class FormatUtilities
java.lang.Object
org.hl7.fhir.r4.formats.FormatUtilities
- Direct Known Subclasses:
ParserBase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Manager.FhirFormatdetermineFormat(byte[] source)static Manager.FhirFormatdetermineFormat(byte[] source, int scanLength)static booleanstatic ResourceloadFile(InputStream source)static Resourcestatic Stringstatic ParserBasemakeParser(String format)static ParserBasemakeParser(Manager.FhirFormat format)protected StringtoString(boolean value)static StringtoString(byte[] value)protected StringtoString(int value)protected Stringprotected StringtoString(BigDecimal value)protected String
-
Field Details
-
ID_REGEX
- See Also:
- Constant Field Values
-
FHIR_NS
- See Also:
- Constant Field Values
-
XHTML_NS
- See Also:
- Constant Field Values
-
NS_XSI
- See Also:
- Constant Field Values
-
-
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:
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRException
-
loadFile
public static Resource loadFile(InputStream source) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException- Throws:
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRException
-