Without opening the file, one(only??) way is to go by
file type extensions comparing them to those that QT
supports for that type, video, image, etc...
This function gives you back a list of supported
extensions you can compare against your own file
types. For instance, if you pass in
StdQTConstants.graphicsImporterComponentType, you'll
get the list of image extensions supported by the
system by QT.
public static ArrayList getSupportedExtensions(int
type) throws QTException {
ArrayList list = new ArrayList();
ComponentDescription wildcard =
new ComponentDescription(type);
ComponentIdentifier ci = null;
while ( (ci = ComponentIdentifier.find(ci,
wildcard)) != null) {
ComponentDescription cd = ci.getInfo();
list.add(QTUtils.fromOSType(cd.getSubType()));
}
return list;
}