How can I get Encoding instances for GSM and mp3 with JDKs older than 1.5.0?
Since 1.5.0, the way to obtain Encoding instances for non-standard encodings like GSM 06.10, Ogg Vorbis and mp3 is to use the constructor Encoding(String name) (See, for instance, Encoding an audio file to GSM 06.10). In JDKs older than 1.5.0, this constructor is protected. So calling it directly is not possible. The old workaround for this problem was a special class org.tritonus.share.sampled.Encodings introduced by Tritonus. It can be used to retrieve Encoding instances. See this older version of GSMEncoder for an example how to do this.