com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class Audio

  • java.lang.Object
    • com.aspose.slides.Audio
  • All Implemented Interfaces:
    IAudio


    public class Audio
    extends java.lang.Object
    implements IAudio

    Represents an embedded audio file.

    • Method Detail

      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.

      • getContentType

        public final java.lang.String getContentType()

        Returns a MIME type of an audio, encoded in BinaryData(getBinaryData()). Read-only String.

        Specified by:
        getContentType in interface IAudio
      • setContentType

        public final void setContentType(java.lang.String value)

        Returns a MIME type of an audio, encoded in BinaryData(getBinaryData()). Read-only String.

      • getBinaryData

        public final byte[] getBinaryData()

        Returns the copy of an audio's data. In case of large amount of data consider using of getStream() method to prevent unnecessary loading of audio's data into memory or even OutOfMemoryException. Read-only byte[].

        Specified by:
        getBinaryData in interface IAudio
      • getStream

        public final java.io.InputStream getStream()

        Returns Stream stream for reading. Use 'using' or close stream after using.

        Specified by:
        getStream in interface IAudio
        Returns:
        Stream for reading.