FileSystem
Overview
FileSystem is a class in Aspose.3D FOSS for Java.
Inherits from: AutoCloseable.
File system encapsulation.
This class provides 8 methods for working with FileSystem objects in Java programs.
Available methods include: close, createDummyFileSystem, createLocalFileSystem, createMemoryFileSystem, createZipFileSystem, readFile, writeFile.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Methods
| Signature | Description |
|---|---|
close() | Calls close on this FileSystem instance. |
readFile(fileName: String, options: IOConfig) → InputStream | Create a stream for reading dependencies. |
writeFile(fileName: String, options: IOConfig) → OutputStream | Create a stream for writing dependencies. |
createLocalFileSystem(directory: String) → LocalFileSystem | Initialize a new FileSystem that only access local directory. |
createMemoryFileSystem(files: Map<String, ByteArrayOutputStream>) → MemoryFileSystem | Initialize a new FileSystem from a dictionary of memory streams. |
createDummyFileSystem() → DummyFileSystem | Create a dummy file system, read/write operations are dummy operations. |
createZipFileSystem(stream: InputStream, baseDir: String) → ZipFileSystem | Create a file system to provide to the read-only access to specified zip file or zip stream. |
createZipFileSystem(fileName: String) → ZipFileSystem | Create a file system to provide to the read-only access to specified zip file or zip stream. |