The source format represents the format of the incoming audio data, which will be converted.
The target format represents the format of the processed, converted audio
data. This is the format of the data that can be read from the stream
returned by one of the getAudioInputStream methods.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract AudioInputStream | Returns: stream from which processed data with the specified target encoding may be readdesired encoding of the stream after processing targetEncoding,stream from which data to be processed should be
read sourceStream)Obtains an audio input stream with the specified encoding from the given audio input stream. |
| public abstract AudioInputStream | Returns: stream from which processed data with the specified format may be readdesired data format of the stream after processing targetFormat, AudioInputStream stream from which data to be processed should be
read sourceStream)Obtains an audio input stream with the specified format from the given audio input stream. |
| public abstract AudioFormat. | Returns: array of source format encodings. If for some reason provider does not provide any conversion services, an array of length 0 is returned.Obtains the set of source format encodings from which format conversion services are provided by this provider. |
| public abstract AudioFormat. | Returns: array of target format encodings. If for some reason provider does not provide any conversion services, an array of length 0 is returned.Obtains the set of target format encodings to which format conversion services are provided by this provider. |
| public abstract AudioFormat. | Returns: array of supported target format encodingsformat of the incoming data sourceFormat)Obtains the set of target format encodings supported by the format converter given a particular source format. |
| public abstract AudioFormat[] | Returns: array of supported target formatsdesired encoding of the stream after processing targetEncoding,format of the incoming data sourceFormat)Obtains the set of target formats with the encoding specified supported by the format converter. |
| public boolean | Returns: true if the conversion is supported, otherwise
falsedesired encoding of the outgoing data targetEncoding,format of the incoming data sourceFormat)Indicates whether the format converter supports conversion to a particular encoding from a particular format. |
| public boolean | Returns: true if the conversion is supported, otherwise
falsedesired format of outgoing data targetFormat, final AudioFormat format of the incoming data sourceFormat)Indicates whether the format converter supports conversion to one particular format from another. |
| public boolean | Returns: true if the encoding is supported, otherwise
falsethe source format encoding for which support is
queried sourceEncodingIndicates whether the format converter supports conversion from the specified source format encoding. |
| public boolean | Returns: true if the encoding is supported, otherwise
falsethe target format encoding for which support is
queried targetEncodingIndicates whether the format converter supports conversion to the specified target format encoding. |
| FormatConversionProvider | back to summary |
|---|---|
| protected FormatConversionProvider() Constructor for subclasses to call. | |
| getAudioInputStream | back to summary |
|---|---|
| public abstract AudioInputStream getAudioInputStream(AudioFormat. Obtains an audio input stream with the specified encoding from the given audio input stream.
| |
| getAudioInputStream | back to summary |
|---|---|
| public abstract AudioInputStream getAudioInputStream(AudioFormat targetFormat, AudioInputStream sourceStream) Obtains an audio input stream with the specified format from the given audio input stream.
| |
| getSourceEncodings | back to summary |
|---|---|
| public abstract AudioFormat. Obtains the set of source format encodings from which format conversion services are provided by this provider.
| |
| getTargetEncodings | back to summary |
|---|---|
| public abstract AudioFormat. Obtains the set of target format encodings to which format conversion services are provided by this provider.
| |
| getTargetEncodings | back to summary |
|---|---|
| public abstract AudioFormat. 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 abstract AudioFormat[] getTargetFormats(AudioFormat. 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.
| |
| isConversionSupported | back to summary |
|---|---|
| public boolean isConversionSupported(final AudioFormat. Indicates whether the format converter supports conversion to a particular encoding from a particular format.
| |
| isConversionSupported | back to summary |
|---|---|
| public boolean isConversionSupported(final AudioFormat targetFormat, final AudioFormat sourceFormat) Indicates whether the format converter supports conversion to one particular format from another.
| |
| isSourceEncodingSupported | back to summary |
|---|---|
| public boolean isSourceEncodingSupported(final AudioFormat. Indicates whether the format converter supports conversion from the specified source format encoding.
| |
| isTargetEncodingSupported | back to summary |
|---|---|
| public boolean isTargetEncodingSupported(final AudioFormat. Indicates whether the format converter supports conversion to the specified target format encoding.
| |