Package ipsk.audio.io

Class InterceptorAudioInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class InterceptorAudioInputStream
    extends javax.sound.sampled.AudioInputStream
    Author:
    klausj
    • Constructor Detail

      • InterceptorAudioInputStream

        public InterceptorAudioInputStream​(java.io.InputStream stream,
                                           javax.sound.sampled.AudioFormat format,
                                           long length)
        Parameters:
        stream -
        format -
        length -
      • InterceptorAudioInputStream

        public InterceptorAudioInputStream​(javax.sound.sampled.AudioInputStream stream)
    • Method Detail

      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class javax.sound.sampled.AudioInputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class javax.sound.sampled.AudioInputStream
        Throws:
        java.io.IOException
      • getFormat

        public javax.sound.sampled.AudioFormat getFormat()
        Overrides:
        getFormat in class javax.sound.sampled.AudioInputStream
      • getFrameLength

        public long getFrameLength()
        Overrides:
        getFrameLength in class javax.sound.sampled.AudioInputStream
      • mark

        public void mark​(int readlimit)
        Overrides:
        mark in class javax.sound.sampled.AudioInputStream
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class javax.sound.sampled.AudioInputStream
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class javax.sound.sampled.AudioInputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class javax.sound.sampled.AudioInputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class javax.sound.sampled.AudioInputStream
        Throws:
        java.io.IOException
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class javax.sound.sampled.AudioInputStream
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Overrides:
        skip in class javax.sound.sampled.AudioInputStream
        Throws:
        java.io.IOException
      • isInterrupted

        public boolean isInterrupted()
      • setInterrupted

        public void setInterrupted​(boolean interrupted)