
Package ca.uhn.fhir.util
Class BinaryUtil
java.lang.Object
ca.uhn.fhir.util.BinaryUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic IPrimitiveType<byte[]> getOrCreateData(FhirContext theContext, IBaseBinary theBinary) Fetches the base64Binary value of Binary.data (or Binary.content on versions of FHIR before R4), creating it if it does not already exist.static IBaseReferencegetSecurityContext(FhirContext theCtx, IBaseBinary theBinary) static IBaseBinarynewBinary(FhirContext theCtx) static voidsetData(FhirContext theCtx, IBaseBinary theBinary, byte[] theBytes, String theContentType) static voidsetSecurityContext(FhirContext theCtx, IBaseBinary theBinary, String theSecurityContext)
-
Method Details
-
getOrCreateData
Fetches the base64Binary value of Binary.data (or Binary.content on versions of FHIR before R4), creating it if it does not already exist. -
getSecurityContext
-
newBinary
-
setSecurityContext
public static void setSecurityContext(FhirContext theCtx, IBaseBinary theBinary, String theSecurityContext) -
setData
public static void setData(FhirContext theCtx, IBaseBinary theBinary, byte[] theBytes, String theContentType)
-