Class BinaryDataExtension


  • public class BinaryDataExtension
    extends Object
    Operation implementations for EClass BinaryData.
    • Constructor Detail

      • BinaryDataExtension

        public BinaryDataExtension()
    • Method Detail

      • getContent

        public static InputStream getContent​(BinaryData binaryData)
        Gets the contents of the specified BinaryData instance.
        Parameters:
        binaryData - The BinaryData instance. May not be null.
        Returns:
        an InputStream instance providing the content. Never null.
      • setContent

        public static void setContent​(BinaryData binaryData,
                                      InputStream content)
        Sets the contents of the specified BinaryData instance.
        Parameters:
        binaryData - The BinaryData instance. May not be null.
        content - An InputStream instance providing the content. May not be null.
      • isBinaryDataContentBlobFqn

        public static boolean isBinaryDataContentBlobFqn​(String fqn)
        Checks if the specified FQN belongs to a binary data content blob.
        Parameters:
        fqn - The FQN. May not be null.
        Returns:
        true if the specified FQN belongs to a binary data content blob, false otherwise.
      • buildBinaryDataContentBlobFqn

        public static String buildBinaryDataContentBlobFqn​(BinaryData binaryData)
        Builds binary data content blob FQN.
        Parameters:
        binaryData - The binary data. May not be null.
        Returns:
        the blob FQN. Never null.
      • buildBinaryDataContentBlobFqn

        public static String buildBinaryDataContentBlobFqn​(String binaryDataFqn)
        Builds binary data content blob FQN.
        Parameters:
        binaryDataFqn - The binary data FQN. May not be null.
        Returns:
        the blob FQN. Never null.
      • extractBinaryDataFqnFromContentBlobFqn

        public static String extractBinaryDataFqnFromContentBlobFqn​(String fqn)
        Extracts the binary data FQN from the corresponding content blob FQN.
        Parameters:
        fqn - The blob FQN. May not be null.
        Returns:
        the extracted binary data FQN. Never null.