---
Product: Aspose.3D
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/java/xloadoptions
---

# XLoadOptions

## Overview

`XLoadOptions` is a class in Aspose.3D FOSS for Java.
Inherits from: `LoadOptions`.

Options for X (DirectX) loading.

This class provides 16 methods for working with XLoadOptions objects in Java programs.
Available methods include: `LoadOptions`, `XLoadOptions`, `getCenterScene`, `getEncoding`, `getFileFormat`, `getFileName`, `getFileSystem`, `getFileSystemFactory`, `getLookupPaths`, `setCenterScene`, `setEncoding`, `setFileName`, and 3 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `centerScene`, `encoding`, `fileFormat`, `fileName`, `fileSystem`, `fileSystemFactory`, and 1 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `centerScene` | `boolean` | Read/Write | Gets whether to center the scene after loading. |
| `fileFormat` | `FileFormat` | Read | Gets the file format. |
| `fileSystemFactory` | `FileSystemFactory` | Read | Gets the factory class for FileSystem. |
| `encoding` | `java.nio.charset.Charset` | Read/Write | Gets the default encoding for text-based files. |
| `fileSystem` | `FileSystem` | Read/Write | Allow user to handle how to manage the external dependencies during load/save. |
| `lookupPaths` | `java.util.ArrayList<String>` | Read/Write | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
| `fileName` | `String` | Read/Write | The file name of the exporting/importing scene. |

## Methods

| Signature | Description |
|-----------|-------------|
| `XLoadOptions()` | Constructor of XLoadOptions. |
| `getCenterScene()` → `boolean` | Gets whether to center the scene after loading. |
| `setCenterScene(value: boolean)` | Sets whether to center the scene after loading. |
| `LoadOptions()` | Initializes a new instance of the LoadOptions class. |
| `LoadOptions(format: FileFormat)` | Initializes a new instance of the LoadOptions class with a file format. |
| `getFileFormat()` → `FileFormat` | Returns the file format. |
| `getFileSystemFactory()` → `FileSystemFactory` | Gets the factory class for FileSystem. |
| `setFileSystemFactory(value: FileSystemFactory)` | Sets the factory class for FileSystem. |
| `getEncoding()` → `java.nio.charset.Charset` | Gets the default encoding for text-based files. |
| `setEncoding(value: java.nio.charset.Charset)` | Sets the default encoding for text-based files. |
| `getFileSystem()` → `FileSystem` | Allow user to handle how to manage the external dependencies during load/save. |
| `setFileSystem(value: FileSystem)` | Allow user to handle how to manage the external dependencies during load/save. |
| `getLookupPaths()` → `java.util.ArrayList<String>` | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
| `setLookupPaths(value: java.util.ArrayList<String>)` | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
| `getFileName()` → `String` | The file name of the exporting/importing scene. |
| `setFileName(value: String)` | The file name of the exporting/importing scene. |

## See Also
- [Aspose.3D for Java — Enterprise API Reference](https://reference.aspose.com/3d/java/com.aspose.threed/xloadoptions/)