3D dosyasının biçimini algılama
Contents
[
Hide
]
Aspose.3D for Java API, dosya uzantısının dosya içeriğinin uygun olduğunu garanti etmediği için açmadan önce 3D desteklenen biçimleri tespit etme desteğine sahiptir.
Detect Format rorogramming ample ample
Kaynak kodu, dosya formatını (dosya yolunu veya akışını kullanarak) nasıl tespit edeceğinizi ve uzantısını kontrol edeceğinizi gösterir.
// the path to the documents directory.
String MyDir = RunExamples.getDataDir();
// detect format of 3D file
FileFormat inputFormat = FileFormat.detect(MyDir + "document.fbx");
// display the file format
System.out.println("File Format: " + inputFormat.toString());