FileFormat
General
FileFormat és una classe en Aspose.3d per a Java.
La classe FileFormat exposa mètodes per consultar si un format es pot importar o exportar, recuperar les seves extensions de fitxer i crear opcions d’encarregament o salva específica del format.
Propietats
| Nom | Tipus de productes | Accés | Descripció |
|---|---|---|---|
formats | List<FileFormat> | Llegeix. | Proporciona la llista de tots els formats de fitxer suportats |
version | Version | Llegeix. | Proporciona la versió associada a aquest format |
canImport | boolean | Llegeix. | Indica si aquest format suporta operacions d’import. |
canExport | boolean | Llegeix. | Indica si aquest format suporta operacions d’exportació. |
extension | String | Llegeix. | |
extensions | String[] | Llegeix. | |
contentType | FileContentType | Llegeix. | Proporciona el tipus MIME d’aquest format |
fileFormatType | FileFormatType | Llegeix. | Proporciona la categoria enum d’aquest format |
importer | IImporter | Llegeix. | Proporciona l’instància d’importador per a aquest format |
exporter | IExporter | Llegeix. | |
FBX6100ASCII | FileFormat | Llegeix. | Representa el format de fitxer FBX 6.1.0 ASCII. |
FBX6100_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari FBX 6.1.0 |
FBX7200ASCII | FileFormat | Llegeix. | Representa el format de fitxer FBX 7.2.0 ASCII. |
FBX7200_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari FBX 7.2.0 |
FBX7300ASCII | FileFormat | Llegeix. | Representa el format de fitxer FBX 7.3.0 ASCII. |
FBX7300_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari FBX 7.3.0 |
FBX7400ASCII | FileFormat | Llegeix. | Representa el format de fitxer FBX 7.4.0 ASCII. |
FBX7400_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari FBX 7.4.0 |
FBX7500ASCII | FileFormat | Llegeix. | Representa el format de fitxer FBX 7.5.0 ASCII. |
FBX7500_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari FBX 7.5.0 |
FBX7600ASCII | FileFormat | Llegeix. | Representa el format de fitxer FBX 7.6.0 ASCII. |
FBX7600_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari FBX 7.6.0 |
FBX7700ASCII | FileFormat | Llegeix. | |
FBX7700_BINARY | FileFormat | Llegeix. | |
MAYAASCII | FileFormat | Llegeix. | Representa el format de fitxer ASCII Maya |
MAYA_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari Maya |
STL_BINARY | FileFormat | Llegeix. | Representa el format de fitxer binari STL. |
STLASCII | FileFormat | Llegeix. | Representa el format de fitxer ASCII STL |
WAVEFRONTOBJ | FileFormat | Llegeix. | Representa el format de fitxer Wavefront OBJ |
DISCREET3DS | FileFormat | Llegeix. | Representa el format de fitxer 3DS |
COLLADA | FileFormat | Llegeix. | |
UNIVERSAL3D | FileFormat | Llegeix. | |
GLTF | FileFormat | Llegeix. | |
GLTF2 | FileFormat | Llegeix. | |
GLTF_BINARY | FileFormat | Llegeix. | |
GLTF2_BINARY | FileFormat | Llegeix. | |
PDF | PdfFormat | Llegeix. | |
BLENDER | FileFormat | Llegeix. | |
DXF | FileFormat | Llegeix. | |
PLY | PlyFormat | Llegeix. | |
X_BINARY | FileFormat | Llegeix. | |
X_TEXT | FileFormat | Llegeix. | |
DRACO | DracoFormat | Llegeix. | |
MICROSOFT3MF | Microsoft3MFFormat | Llegeix. | |
RVM_TEXT | RvmFormat | Llegeix. | |
RVM_BINARY | RvmFormat | Llegeix. | |
ASE | FileFormat | Llegeix. | |
IFC | FileFormat | Llegeix. | |
SIEMENSJT8 | FileFormat | Llegeix. | |
SIEMENSJT9 | FileFormat | Llegeix. | |
AMF | FileFormat | Llegeix. | |
VRML | FileFormat | Llegeix. | |
ASPOSE3D_WEB | FileFormat | Llegeix. | |
HTML5 | FileFormat | Llegeix. | |
ZIP | FileFormat | Llegeix. | |
USD | FileFormat | Llegeix. | |
USDA | FileFormat | Llegeix. | |
USDZ | FileFormat | Llegeix. | |
XYZ | FileFormat | Llegeix. | |
PCD | FileFormat | Llegeix. | |
PCD_BINARY | FileFormat | Llegeix. |
Mètodes
| Signatura | Descripció |
|---|---|
getFormats() → List<FileFormat> | Retorna una llista de tots els formats de fitxers suportats |
getVersion() → Version | Retorna la versió associada a aquest format de fitxer. |
getFormatByExtension(filePath: String) → FileFormat | Retorna l’extensió FileFormat que correspon a la ruta de fitxer donada. |
getCanImport() → boolean | Indica si aquest format es pot importar. |
getCanExport() → boolean | Indica si aquest format es pot exportar. |
getExtension() → String | Retorna l’extensió de fitxer principal per a aquest format |
getExtensions() → String[] | Retorna totes les extensions reconegudes per a aquest format. |
getContentType() → FileContentType | Retorna el tipus de contingut MIME d’aquest format |
getFileFormatType() → FileFormatType | Retorna el tipus de categoria d’aquest format de fitxer |
getImporter() → IImporter | Retorna la implementació d’importador per a aquest format |
getExporter() → IExporter | Retorna la implementació d’exportador per a aquest format |
canDetect(stream: Stream, fileName: String) → boolean | Determina si el format es pot detectar a partir d’un flux i nom de fitxer |
detect(stream: Stream, fileName: String) → FileFormat | Detecta i retorna el FileFormat d’un flux i nom de fitxer |
detect(fileName: String) → FileFormat | |
registerFormat(format: FileFormat) | Registra un nou FileFormat al sistema. |
createLoadOptions() → LoadOptions | Crea opcions de càrrega predeterminades per a aquest format |
createObjLoadOptions() → ObjLoadOptions | Crea opcions de càrrega específiques per a l’OBJ |
createObjSaveOptions() → ObjSaveOptions | Crea opcions d’enviament específiques per a l’OBJ |
createSaveOptions() → SaveOptions | Crea opcions d’enviament per aquest format |
toString() → String | Retorna una representació de cadena del FileFormat |