com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ILinkEmbedController

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int getObjectStoringLocation(int id, byte[] entityData, java.lang.String semanticName, java.lang.String contentType, java.lang.String recomendedExtension)
      Determines where object should be stored.
      java.lang.String getUrl(int id, int referrer)
      Returns an URL to an external object.
      void saveExternal(int id, byte[] entityData)
      Saves external object.
    • Method Detail

      • getObjectStoringLocation

        int getObjectStoringLocation(int id,
                                     byte[] entityData,
                                     java.lang.String semanticName,
                                     java.lang.String contentType,
                                     java.lang.String recomendedExtension)

        Determines where object should be stored. This method is called once for each object id. It is not guaranteed that there won't be two objects with same data, semanticName and contentType but with different id.

        Parameters:
        id - Object id. This id is saving operation-wide unique.
        entityData - Object binary data. This parameter can be null, if object binary data is not generated yet.
        semanticName - Some short text, describing meaning of object. Controller may use this as a part of external object name, but it is up to dispatcher to ensure that names will be unique and contain only allowed characters.
        contentType - MIME type of object.
        recomendedExtension - File name extension, recommended for this MIME type.
        Returns:
        Decision
      • saveExternal

        void saveExternal(int id,
                          byte[] entityData)

        Saves external object.

        Parameters:
        id - Object id. This id is saving operation-wide unique.
        entityData - Object binary data. This parameter cannot be null.