com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class AudioCollection

  • java.lang.Object
    • com.aspose.slides.AudioCollection
  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IAudio>, com.aspose.ms.System.Collections.ICollection<IAudio>, com.aspose.ms.System.Collections.IEnumerable<IAudio>, IAudioCollection, IGenericCollection<IAudio>, java.lang.Iterable<IAudio>


    public class AudioCollection
    extends java.lang.Object
    implements IAudioCollection

    Represents a collection of embedded audio files.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IAudio addAudio(byte[] audioData)
      Creates and adds a audio to a presentation from byte array.
      IAudio addAudio(IAudio audio)
      Adds a copy of an audio file from an another presentation.
      IAudio addAudio(java.io.InputStream stream)
      Creates and adds a audio to a presentation from stream.
      IAudio addAudio(java.io.InputStream stream, int loadingStreamBehavior)
      Creates and adds a audio to a presentation from stream.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies audios to specified array starting from specifyed index.
      IAudio get_Item(int index)
      Gets the element at the specified index.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      java.lang.Object getSyncRoot()
      Returns a synchronization root.
      boolean isSynchronized()
      Returns a value indicating whether access to the collection is synchronized (thread-safe).
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> iterator()
      Returns an enumerator that iterates through the collection.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> iteratorJava()
      Returns a java iterator for the entire collection.
      int size()
      Returns a number of audio files in the collection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • size

        public final int size()

        Returns a number of audio files in the collection. Read-only int.

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection<IAudio>
      • addAudio

        public final IAudio addAudio(IAudio audio)

        Adds a copy of an audio file from an another presentation.

        Specified by:
        addAudio in interface IAudioCollection
        Parameters:
        audio - Source audio.
        Returns:
        Added audio.
      • addAudio

        public final IAudio addAudio(java.io.InputStream stream)

        Creates and adds a audio to a presentation from stream.

        Specified by:
        addAudio in interface IAudioCollection
        Parameters:
        stream - Stream to add audio from.
        Returns:
        Added audio.
      • addAudio

        public final IAudio addAudio(java.io.InputStream stream,
                                     int loadingStreamBehavior)

        Creates and adds a audio to a presentation from stream.

        Specified by:
        addAudio in interface IAudioCollection
        Parameters:
        stream - Stream to add video audio from.
        loadingStreamBehavior - The behavior which will be applied to the stream.
        Returns:
        Added audio.
      • addAudio

        public final IAudio addAudio(byte[] audioData)

        Creates and adds a audio to a presentation from byte array.

        Specified by:
        addAudio in interface IAudioCollection
        Parameters:
        audioData - Audio bytes.
        Returns:
        Added audio.
      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.

      • copyTo

        public final void copyTo(com.aspose.ms.System.Array array,
                                 int index)

        Copies audios to specified array starting from specifyed index.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<IAudio>
        Parameters:
        array - Array.
        index - Index.
      • isSynchronized

        public final boolean isSynchronized()

        Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IAudio>
      • getSyncRoot

        public final java.lang.Object getSyncRoot()

        Returns a synchronization root. Read-only Object.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IAudio>
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IAudio>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IAudio>
        Specified by:
        iterator in interface java.lang.Iterable<IAudio>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • iteratorJava

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IAudio> iteratorJava()

        Returns a java iterator for the entire collection.

        Specified by:
        iteratorJava in interface IGenericCollection<IAudio>
        Returns:
        An Iterator for the entire collection.