API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.sampled. AudioInputStream View Source
Author(s)
David Rivas
Kara Kytle
Florian Bomers
Since
1.3
Version
1.34, 05/11/17
Serial
Hierarchy
 Object
      InputStream
          AudioInputStream
Implements
Subclasses
Description
public class AudioInputStream
  An audio input stream is an input stream with a specified audio format and length.
Constructors
public AudioInputStream (InputStream stream, AudioFormat format, long length)
  Constructs an audio input stream that has the requested format and length in sample frames, using audio data from the specified input stream.
public AudioInputStream (TargetDataLine line)
  Constructs an audio input stream that reads its data from the target data line indicated.
Methods
Hide/Show inherited methods
public int available () throws IOException [Overrides InputStream]
  Returns the maximum number of bytes that can be read (or skipped over) from this audio input stream without blocking.
public void close () throws IOException [Overrides InputStream]
  Closes this audio input stream and releases any system resources associated with the stream.
public AudioFormat getFormat ()
  Obtains the audio format of the sound data in this audio input stream.
public long getFrameLength ()
  Obtains the length of the stream, expressed in sample frames rather than bytes.
public void mark (int readlimit) [Overrides InputStream]
  Marks the current position in this audio input stream.
public boolean markSupported () [Overrides InputStream]
  Tests whether this audio input stream supports the mark and reset methods.
public int read () throws IOException [Specified in InputStream]
  Reads the next byte of data from the audio input stream.
public int read (byte[] b) throws IOException [Overrides InputStream]
  Reads some number of bytes from the audio input stream and stores them into the buffer array b.
public int read (byte[] b, int off, int len) throws IOException [Overrides InputStream]
  Reads up to a specified maximum number of bytes of data from the audio stream, putting them into the given byte array.
public void reset () throws IOException [Overrides InputStream]
  Repositions this audio input stream to the position it had at the time its mark method was last invoked.
public long skip (long n) throws IOException [Overrides InputStream]
  Skips over and discards a specified number of bytes from this audio input stream.
Fields
Hide/Show inherited fields
protected AudioFormat format
The format of the audio data contained in the stream.
protected long frameLength
This stream's length, in sample frames.
protected long framePos
The current position in this stream, in sample frames (zero-based).
protected int frameSize
The size of each frame, in bytes.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar