Interface EmbeddedFile

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getId

        @NonNull() abstract String getId()

        Returns identifier of this embedded file.

        Returns:

        Identifier of this embedded file that is unique across the document.

      • getFileSize

         abstract long getFileSize()

        Returns file size.

        Returns:

        File size in bytes or FILE_SIZE_UNKNOWN if size could not be determined.

      • writeToStreamAsync

        @NonNull() abstract Completable writeToStreamAsync(@NonNull() OutputStream outputStream)

        Writes the complete contents of this file to the specified output stream, asynchronously.

        Parameters:
        outputStream - Output stream to which to write file's data.
        Returns:

        Completable that completes once the writing finishes.

      • writeToStream

         abstract void writeToStream(@NonNull() OutputStream outputStream)

        Writes the complete contents of this file to the specified output stream.

        Parameters:
        outputStream - Output stream to which to write file's data.
      • getFileData

        @NonNull() abstract Array<byte> getFileData()

        Reads whole file and returns its data. This could take a while and should be executed on background thread.

        Returns:

        Byte array of file's data.