Class EmbeddedFileSource

  • All Implemented Interfaces:

    
    public class EmbeddedFileSource
    
                        

    Represents a source of embedded file data.

    • Constructor Detail

      • EmbeddedFileSource

        EmbeddedFileSource(DataProvider fileDataProvider, String fileName, String fileDescription)
        Constructs an embedded file source with data served from DataProvider.
        Parameters:
        fileDataProvider - Provider for file's data that will be saved in the document.
        fileName - User displayable name of the file.
        fileDescription - The optional description of the file.
      • EmbeddedFileSource

        EmbeddedFileSource(Uri fileUri, String fileName, String fileDescription)
        Constructs an embedded file source with data served from file content provider URI.
        Parameters:
        fileUri - A content provider URI with supported scheme (content:// or file://).
        fileName - User displayable name of the file.
        fileDescription - The optional description of the file.
      • EmbeddedFileSource

        EmbeddedFileSource(Array<byte> fileData, String fileName, String fileDescription)
        Constructs an embedded file source with data served from memory.
        Parameters:
        fileData - File data that will be saved in the document.
        fileName - User displayable name of the file.
        fileDescription - The optional description of the file.