Modifier and Type | Class and Description |
---|---|
private class |
Modifier and Type | Field and Description |
---|---|
private static final short[] | |
private static final byte[] | |
private static final byte[] |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public AudioInputStream | getAudioInputStream(AudioFormat.
desired encoding of the stream after processing targetEncoding,stream from which data to be processed should be
read sourceStream)Implements abstract javax. |
public AudioInputStream | getAudioInputStream(AudioFormat
desired data format of the stream after processing targetFormat, AudioInputStream stream from which data to be processed should be
read sourceStream)Implements abstract javax. |
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. |
public AudioFormat. | getTargetEncodings()
Implements abstract javax. |
public AudioFormat. | getTargetEncodings(AudioFormat
format of the incoming data sourceFormat)Implements abstract javax. |
public AudioFormat[] | getTargetFormats(AudioFormat.
desired encoding of the stream after processing targetEncoding,format of the incoming data sourceFormat)Implements abstract javax. |
seg_end | back to summary |
---|---|
private static final short[] seg_end |
ULAW_TABH | back to summary |
---|---|
private static final byte[] ULAW_TABH |
ULAW_TABL | back to summary |
---|---|
private static final byte[] ULAW_TABL |
UlawCodec | back to summary |
---|---|
public UlawCodec() |
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 u-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. |
public int | read(byte[]
the buffer into which the data is read. b)Overrides javax. b .
|
public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides javax. |
private short | |
public long | skip(final long
the requested number of bytes to be skipped n)Overrides javax. |
decodeFormat | back to summary |
---|---|
pack-priv AudioFormat decodeFormat |
encode | back to summary |
---|---|
pack-priv boolean encode True to encode to u-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 |
UlawCodecStream | back to summary |
---|---|
pack-priv UlawCodecStream(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
|