Lines Matching refs:stream

34  * An audio input stream is an input stream with a specified audio format and
37 * the stream, or an unspecified number of bytes.
38 * The audio input stream keeps track of the last byte that was read.
40 * for reading. An audio input stream may support marks. When you set a mark,
48 * audio input stream from an external audio file, stream, or URL
49 * <li> write an external file from an audio input stream
50 * <li> convert an audio input stream to a different audio format
67 private InputStream stream;
70 * The format of the audio data contained in the stream.
75 * This stream's length, in sample frames.
85 * The current position in this stream, in sample frames (zero-based).
95 * When the underlying stream could only return
118 * Constructs an audio input stream that has the requested format and length in sample frames,
119 * using audio data from the specified input stream.
120 * @param stream the stream on which this <code>AudioInputStream</code>
122 * @param format the format of this stream's audio data
123 * @param length the length in sample frames of the data in this stream
125 public AudioInputStream(InputStream stream, AudioFormat format, long length) {
134 // cause that this stream will be read in bytes
139 this.stream = stream;
146 * Constructs an audio input stream that reads its data from the target
147 * data line indicated. The format of the stream is the same as that of
149 * @param line the target data line from which this stream obtains its data.
162 this.stream = tstream;
169 * Obtains the audio format of the sound data in this audio input stream.
170 * @return an audio format object describing this stream's format
178 * Obtains the length of the stream, expressed in sample frames rather than bytes.
187 * Reads the next byte of data from the audio input stream. The audio input
188 * stream's frame size must be one byte, or an <code>IOException</code>
191 * @return the next byte of data, or -1 if the end of the stream is reached
214 * Reads some number of bytes from the audio input stream and stores them into
217 * available, the end of the stream is detected, or an exception is thrown.
225 * is no more data because the end of the stream has been reached
238 * stream, putting them into the given byte array.
249 * is no more data because the end of the stream has been reached
292 int thisBytesRead = stream.read(b, thisOff, len);
320 * audio input stream.
340 long temp = stream.skip(n);
358 * audio input stream without blocking. This limit applies only to the next invocation of
359 * a <code>read</code> or <code>skip</code> method for this audio input stream; the limit
361 * Depending on the underlying stream,an IOException may be thrown if this
362 * stream is closed.
363 * @return the number of bytes that can be read from this audio input stream without blocking
372 int temp = stream.available();
384 * Closes this audio input stream and releases any system resources associated
385 * with the stream.
389 stream.close();
394 * Marks the current position in this audio input stream.
403 stream.mark(readlimit);
419 * Repositions this audio input stream to the position it had at the time its
427 stream.reset();
441 * Tests whether this audio input stream supports the <code>mark</code> and
443 * @return <code>true</code> if this stream supports the <code>mark</code>
450 return stream.markSupported();