Class FixedLengthAudioStream

    • Constructor Detail

      • FixedLengthAudioStream

        public FixedLengthAudioStream()
    • Method Detail

      • length

        public abstract long length()
        Provides the length of the stream in bytes.
        Returns:
        absolute length in bytes
      • getClonedStream

        public abstract InputStream getClonedStream()
                                             throws AudioException
        Returns a new, fully independent stream instance, which can be read and closed without impacting the original instance.
        Returns:
        a new input stream that can be consumed by the caller
        Throws:
        AudioException - if stream cannot be created