Package com.aspose.threed
Class IOConfig
- java.lang.Object
-
- com.aspose.threed.IOConfig
-
- Direct Known Subclasses:
LoadOptions
,SaveOptions
public class IOConfig extends java.lang.Object
IO config for serialization/deserialization. User can specify detailed configurations like dependency look-up path Or format-related configs here
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.Charset
getEncoding()
Gets the default encoding for text-based files.FileFormat
getFileFormat()
Gets the file format that specified in current Save/Load option.java.lang.String
getFileName()
The file name of the exporting/importing scene.FileSystem
getFileSystem()
Allow user to handle how to manage the external dependencies during load/save.static FileSystemFactory
getFileSystemFactory()
Gets the factory class for FileSystem.java.util.ArrayList<java.lang.String>
getLookupPaths()
Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.protected java.lang.String
lookupForFile(java.lang.String fileName, java.lang.String alternativeFile)
Look up for file in given lookup paths User can override this to provide more customized file lookup mechanisms.void
setEncoding(java.nio.charset.Charset value)
Sets the default encoding for text-based files.void
setFileName(java.lang.String value)
The file name of the exporting/importing scene.void
setFileSystem(FileSystem value)
Allow user to handle how to manage the external dependencies during load/save.static void
setFileSystemFactory(FileSystemFactory value)
Sets the factory class for FileSystem.void
setLookupPaths(java.util.ArrayList<java.lang.String> value)
Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
-
-
-
Method Detail
-
getFileSystemFactory
public static FileSystemFactory getFileSystemFactory()
Gets the factory class for FileSystem. The default factory will createLocalFileSystem
which is not suitable for server environment.
-
setFileSystemFactory
public static void setFileSystemFactory(FileSystemFactory value)
Sets the factory class for FileSystem. The default factory will createLocalFileSystem
which is not suitable for server environment.- Parameters:
value
- New value
-
getFileFormat
public FileFormat getFileFormat()
Gets the file format that specified in current Save/Load option.
-
getEncoding
public java.nio.charset.Charset getEncoding()
Gets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use.
-
setEncoding
public void setEncoding(java.nio.charset.Charset value)
Sets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use.- Parameters:
value
- New value
-
getFileSystem
public FileSystem getFileSystem()
Allow user to handle how to manage the external dependencies during load/save.
-
setFileSystem
public void setFileSystem(FileSystem value)
Allow user to handle how to manage the external dependencies during load/save.- Parameters:
value
- New value
-
getLookupPaths
public java.util.ArrayList<java.lang.String> getLookupPaths()
Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
-
setLookupPaths
public void setLookupPaths(java.util.ArrayList<java.lang.String> value)
Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.- Parameters:
value
- New value
-
getFileName
public java.lang.String getFileName()
The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ's material.
-
setFileName
public void setFileName(java.lang.String value)
The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ's material.- Parameters:
value
- New value
-
lookupForFile
protected java.lang.String lookupForFile(java.lang.String fileName, java.lang.String alternativeFile)
Look up for file in given lookup paths User can override this to provide more customized file lookup mechanisms.- Parameters:
fileName
- File name to look upalternativeFile
- If the file cannot be found, return this- Returns:
- The for file.
-
-