.wav次のコードを使用して、Java プロジェクトで使用しているファイルのプロパティを取得しようとしています。ただし、このコードを実行するとformat.getProperty("title")、 、format.getProperty("author")、およびformat.getProperty("duration")すべてのメソッドが null を返します。これらの詳細を別の方法で取得する必要がありますか?
AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(wavFile);
AudioFormat format = audioInputStream.getFormat();
Object[] temp = {false,
format.getProperty("title"),
format.getProperty("author"),
format.getProperty("duration")};