Skip navigation links
oracle.ifs.server

Interface CustomMediaDriver

    • Method Detail

      • getContent

        InputStream getContent(S_MediaCustom media,
                               String address)
                        throws IfsException
        Gets the content for the specified content address.
        Parameters:
        media - the MediaCustom instance
        address - the content address
        Returns:
        the content
        Throws:
        IfsException - 13801: if the operation fails
        (Published)
      • getContentSize

        long getContentSize(S_MediaCustom media,
                            String address)
                     throws IfsException
        Gets the content size, in bytes, for the specified content address.
        Parameters:
        media - the MediaCustom instance
        address - the content address
        Returns:
        the size
        Throws:
        IfsException - 13802: if the operation fails
        (Published)
      • setContent

        String setContent(S_MediaCustom media,
                          Long cid,
                          InputStream is,
                          AttributeValue[] mediaOptions)
                   throws IfsException
        Stores content from the supplied InputStream.
        Parameters:
        media - the MediaCustom instance
        cid - the content id
        is - the content
        mediaOptions - a set of name/value pairs whose semantics are determined by the CustomMediaDriver implementation, or null for no media options
        Returns:
        the content address
        Throws:
        IfsException - 13803: if the operation fails
        (Published)
      • setContentReference

        String setContentReference(S_MediaCustom media,
                                   Long cid,
                                   String contentReference,
                                   AttributeValue[] mediaOptions)
                            throws IfsException
        Stores content determined from a specified content reference.

        The interpretation of contentReference is determined by the CustomMediaDriver implementation. Some implementations may store its value, while others may resolve its value (in a implementation determined fashion) to other content and store that content instead.

        Parameters:
        media - the MediaCustom instance
        cid - the content id
        contentReference - the content reference
        mediaOptions - a set of name/value pairs whose semantics are determined by the CustomMediaDriver implementation, or null for no media options
        Returns:
        the content address
        Throws:
        IfsException - 13804: if the operation fails
        (Published)
      • getRandomAccessorDriver

        RandomAccessDriver getRandomAccessorDriver(S_MediaCustom media,
                                                   String address)
                                            throws IfsException
        Gets a RandomAccessDriver for the specified content address.
        Parameters:
        media - the MediaCustom instance
        address - the content address
        Returns:
        the RandomAccessDriver
        Throws:
        IfsException - 13805: if the operation fails
        (Published)
      • destroyContent

        void destroyContent(S_MediaCustom media,
                            String address,
                            Long cid,
                            AttributeValue[] mediaOptions)
                     throws IfsException
        Destroys content with the specified content address.
        Parameters:
        media - the MediaCustom instance
        address - the content address
        cid - the content id
        mediaOptions - a set of name/value pairs whose semantics are determined by the CustomMediaDriver implementation, or null for no media options
        Throws:
        IfsException - 13806: if the operation fails
        (Published)

Copyright © 2023. All rights reserved.