ZipArchiveFileSystem
内容
[
隐藏
]Inheritance: java.lang.Object, com.aspose.threed.FileSystem
public class ZipArchiveFileSystem extends FileSystem
文件系统提供对指定 zip 文件或 zip 流的只读访问。文件系统将在打开/保存操作后被释放。Example: 以下代码展示了如何导入文件,并在 zip 存档文件中提供依赖文件。
var inputFile = "input.fbx";
var format = FileFormat.detect(inputFile);
//create a load options instance and specify a zip file system
var opt = format.createLoadOptions();
opt.setFileSystem(new ZipArchiveFileSystem("textures.zip"));
//load the file
var scene = Scene.fromFile(inputFile, opt);
构造函数
方法
| 方法 | 描述 |
|---|---|
| close() | 释放 ZipArchiveFileSystem 并释放其内部资源。 |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| readFile(String fileName, IOConfig options) | 打开文件以读取 |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) | |
| writeFile(String fileName, IOConfig options) | 打开文件以写入,此类未实现。 |
ZipArchiveFileSystem(Stream stream, String baseDir)
public ZipArchiveFileSystem(Stream stream, String baseDir)
通过流构造一个 ZipArchiveFileSystem。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 流 | com.aspose.csporter.helpers.Stream | |
| baseDir | java.lang.String |
ZipArchiveFileSystem(Stream stream)
public ZipArchiveFileSystem(Stream stream)
通过流构造一个 ZipArchiveFileSystem。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 流 | com.aspose.csporter.helpers.Stream |
ZipArchiveFileSystem(String fileName)
public ZipArchiveFileSystem(String fileName)
通过文件名构造一个 ZipArchiveFileSystem。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 文件名 | java.lang.String |
close()
public void close()
释放 ZipArchiveFileSystem 并释放其内部资源。
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
readFile(String fileName, IOConfig options)
public Stream readFile(String fileName, IOConfig options)
打开文件以读取
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 文件名 | java.lang.String | |
| options | IOConfig |
Returns: com.aspose.csporter.helpers.Stream
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |
writeFile(String fileName, IOConfig options)
public Stream writeFile(String fileName, IOConfig options)
打开文件以写入,此类未实现。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 文件名 | java.lang.String | |
| options | IOConfig |
Returns: com.aspose.csporter.helpers.Stream