|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--local.media.ToneInputStream
Generates a single tone.
| Field Summary | |
static int |
PCM_LINEAR_SIGNED
Identifier of linear signed PCM |
static int |
PCM_LINEAR_UNSIGNED
Identifier of linear unsigned PCM |
| Constructor Summary | |
ToneInputStream(int frequence,
double ampliture,
int sample_rate,
int sample_size,
int codec,
boolean big_endian)
Creates a new ToneInputStream |
|
| Method Summary | |
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
void |
mark(int readlimit)
Marks the current position in this input stream. |
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes. |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
long |
skip(long n)
Skips over and discards n bytes of data from this input stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PCM_LINEAR_UNSIGNED
public static final int PCM_LINEAR_SIGNED
| Constructor Detail |
public ToneInputStream(int frequence,
double ampliture,
int sample_rate,
int sample_size,
int codec,
boolean big_endian)
| Method Detail |
public int available()
available in class java.io.InputStreampublic int read()
read in class java.io.InputStreampublic int read(byte[] b)
read in class java.io.InputStream
public int read(byte[] b,
int off,
int len)
read in class java.io.InputStreampublic long skip(long n)
skip in class java.io.InputStreampublic void close()
close in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
reset in class java.io.InputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||