Reputation: 51239
The manual does not answer this question: it says "the name of the new type of encoding".
Is this just an arbitrary name like filename? Or this is some predefined name, like in Charset.forName()
method?
In latter case where can I find the list of supported sound encodings?
Upvotes: 0
Views: 271
Reputation: 5423
Check our the source code for: AudioFormat.java. At the bottom of the class it constructs four pre-defined encodings:
The String is used in the equals()
and hashCode()
implementations for AudioFormat.Encoding
, so it certainly is intended to serve the purpose of a unique identifier for the encoding.
Upvotes: 2