| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final byte[] | |
| private static final short[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AudioInputStream | getAudioInputStream(AudioFormat.
Implements abstract javax. Obtains an audio input stream with the specified encoding from the given audio input stream. |
| public AudioInputStream | getAudioInputStream(AudioFormat targetFormat, AudioInputStream sourceStream)
Implements abstract javax. Obtains an audio input stream with the specified format from the given audio input stream. |
| private AudioInputStream | Returns: stream from which processed data may be readdesired data format of the stream after processing outputFormat, AudioInputStream stream from which data to be processed should be read stream)Opens the codec with the specified parameters. |
| private AudioFormat[] | Returns: array of supported output formats.Obtains the set of output formats supported by the codec given a particular input format. |
| public AudioFormat. | getSourceEncodings()
Implements abstract javax. Obtains the set of source format encodings from which format conversion services are provided by this provider. |
| public AudioFormat. | getTargetEncodings()
Implements abstract javax. Obtains the set of target format encodings to which format conversion services are provided by this provider. |
| public AudioFormat. | getTargetEncodings(AudioFormat sourceFormat)
Implements abstract javax. Obtains the set of target format encodings supported by the format converter given a particular source format. |
| public AudioFormat[] | getTargetFormats(AudioFormat.
Implements abstract javax. Obtains the set of target formats with the encoding specified supported by the format converter. |
| ALAW_TABH | back to summary |
|---|---|
| private static final byte[] ALAW_TABH | |
| ALAW_TABL | back to summary |
|---|---|
| private static final byte[] ALAW_TABL | |
| seg_end | back to summary |
|---|---|
| private static final short[] seg_end | |
| AlawCodec | back to summary |
|---|---|
| public AlawCodec() | |
| getAudioInputStream | back to summary |
|---|---|
| public AudioInputStream getAudioInputStream(AudioFormat. Implements abstract javax. Doc from javax. Obtains an audio input stream with the specified encoding from the given audio input stream.
| |
| getAudioInputStream | back to summary |
|---|---|
| public AudioInputStream getAudioInputStream(AudioFormat targetFormat, AudioInputStream sourceStream) Implements abstract javax. Doc from javax. Obtains an audio input stream with the specified format from the given audio input stream.
| |
| getConvertedStream | back to summary |
|---|---|
| private AudioInputStream getConvertedStream(AudioFormat outputFormat, AudioInputStream stream) Opens the codec with the specified parameters.
| |
| getOutputFormats | back to summary |
|---|---|
| private AudioFormat[] getOutputFormats(AudioFormat inputFormat) Obtains the set of output formats supported by the codec given a particular input format. If no output formats are supported for this input format, returns an array of length 0.
| |
| getSourceEncodings | back to summary |
|---|---|
| public AudioFormat. Implements abstract javax. Doc from javax. Obtains the set of source format encodings from which format conversion services are provided by this provider.
| |
| getTargetEncodings | back to summary |
|---|---|
| public AudioFormat. Implements abstract javax. Doc from javax. Obtains the set of target format encodings to which format conversion services are provided by this provider.
| |
| getTargetEncodings | back to summary |
|---|---|
| public AudioFormat. Implements abstract javax. Doc from javax. Obtains the set of target format encodings supported by the format converter given a particular source format. If no target format encodings are supported for this source format, an array of length 0 is returned.
| |
| getTargetFormats | back to summary |
|---|---|
| public AudioFormat[] getTargetFormats(AudioFormat. Implements abstract javax. Doc from javax. Obtains the set of target formats with the encoding specified supported by the format converter. If no target formats with the specified encoding are supported for this source format, an array of length 0 is returned.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv AudioFormat | |
| pack-priv boolean | encode
True to encode to a-law, false to decode to linear |
| pack-priv AudioFormat | |
| pack-priv int | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv byte[] | |
| private byte[] | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | read()
Overrides javax. Note that this won't actually read anything; must read in two-byte units. |
| public int | read(byte[] b)
Overrides javax. Reads some number of bytes from the audio input stream and stores them
into the buffer array |
| public int | read(byte[] b, int off, int len)
Overrides javax. Reads up to a specified maximum number of bytes of data from the audio stream, putting them into the given byte array. |
| private short | |
| public long | skip(final long n)
Overrides javax. Skips over and discards a specified number of bytes from this audio input stream. |
| decodeFormat | back to summary |
|---|---|
| pack-priv AudioFormat decodeFormat | |
| encode | back to summary |
|---|---|
| pack-priv boolean encode True to encode to a-law, false to decode to linear | |
| encodeFormat | back to summary |
|---|---|
| pack-priv AudioFormat encodeFormat | |
| highByte | back to summary |
|---|---|
| pack-priv int highByte | |
| lowByte | back to summary |
|---|---|
| pack-priv int lowByte | |
| tabByte1 | back to summary |
|---|---|
| pack-priv byte[] tabByte1 | |
| tabByte2 | back to summary |
|---|---|
| pack-priv byte[] tabByte2 | |
| tempBuffer | back to summary |
|---|---|
| private byte[] tempBuffer | |
| tempBufferSize | back to summary |
|---|---|
| private static final int tempBufferSize | |
| AlawCodecStream | back to summary |
|---|---|
| pack-priv AlawCodecStream(AudioInputStream stream, AudioFormat outputFormat) | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides javax. Note that this won't actually read anything; must read in two-byte units.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides javax. Doc from javax. Reads some number of bytes from the audio input stream and stores them
into the buffer array
This method will always read an integral number of frames. If the length
of the array is not an integral number of frames, a maximum of
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides javax. Doc from javax. Reads up to a specified maximum number of bytes of data from the audio stream, putting them into the given byte array.
This method will always read an integral number of frames. If
| |
| search | back to summary |
|---|---|
| private short search(short val, short[] table, short size) | |
| skip | back to summary |
|---|---|
| public long skip(final long n) throws IOException Overrides javax. Doc from javax. Skips over and discards a specified number of bytes from this audio input stream.
This method will always skip an integral number of frames. If
| |