Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java を使用してメディア アプリケーションを作成しています。
ファイルが与えられた場合、それがオーディオ ファイルかビデオ ファイルかをどのように判断できますか?
ちなみに、vlcj ライブラリを使用しています。
Java 7 ではjava.nio.file.probeContentType、これを行うために使用できます。
java.nio.file.probeContentType
それまでの間、この種のことを行うための他のオプションがいくつかあります。