Package org.hl7.fhir.r4.formats
Class FormatUtilities
- java.lang.Object
-
- org.hl7.fhir.r4.formats.FormatUtilities
-
- Direct Known Subclasses:
ParserBase
public abstract class FormatUtilities extends Object
-
-
Constructor Summary
Constructors Constructor Description FormatUtilities()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Manager.FhirFormatdetermineFormat(byte[] source)static Manager.FhirFormatdetermineFormat(byte[] source, int scanLength)static booleanisValidId(String tail)static ResourceloadFile(InputStream source)static ResourceloadFile(String path)static StringmakeId(String candidate)static ParserBasemakeParser(String format)static ParserBasemakeParser(Manager.FhirFormat format)protected StringtoString(boolean value)static StringtoString(byte[] value)protected StringtoString(int value)protected StringtoString(String value)protected StringtoString(BigDecimal value)protected StringtoString(URI value)
-
-
-
Field Detail
-
ID_REGEX
public static final String ID_REGEX
- See Also:
- Constant Field Values
-
FHIR_NS
public static final String FHIR_NS
- See Also:
- Constant Field Values
-
XHTML_NS
public static final String XHTML_NS
- See Also:
- Constant Field Values
-
NS_XSI
public static final String NS_XSI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FormatUtilities
public FormatUtilities()
-
-
Method Detail
-
toString
protected String toString(BigDecimal value)
-
makeParser
public static ParserBase makeParser(Manager.FhirFormat format)
-
makeParser
public static ParserBase makeParser(String format)
-
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
-
-