Package ca.uhn.fhir.util
Class BinaryUtil
- java.lang.Object
-
- ca.uhn.fhir.util.BinaryUtil
-
public class BinaryUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 voidsetSecurityContext(FhirContext theCtx, IBaseBinary theBinary, String theSecurityContext)
-
-
-
Method Detail
-
getOrCreateData
public static 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.
-
getSecurityContext
public static IBaseReference getSecurityContext(FhirContext theCtx, IBaseBinary theBinary)
-
newBinary
public static IBaseBinary newBinary(FhirContext theCtx)
-
setSecurityContext
public static void setSecurityContext(FhirContext theCtx, IBaseBinary theBinary, String theSecurityContext)
-
-