LocalFileSystem
내용물
[
숨다
]Inheritance: java.lang.Object, com.aspose.threed.FileSystem
public class LocalFileSystem extends FileSystem
이 LocalFileSystem 은 읽기/쓰기 작업을 로컬 디렉터리에 매핑합니다. Example: 다음 코드는 파일을 가져오고 지정된 디렉터리에서 종속 파일을 제공하는 방법을 보여줍니다
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 LocalFileSystem("textures/"));
//load the file
var scene = Scene.fromFile(inputFile, opt);
생성자
| 생성자 | 설명 |
|---|---|
| LocalFileSystem(String directory) | 지정된 기본 디렉터리로 새로운 LocalFileSystem을 초기화합니다. |
메서드
| 메서드 | 설명 |
|---|---|
| close() | 파일 시스템을 해제하고 리소스를 해제합니다. |
| 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) | 종속성을 쓰기 위한 스트림을 생성합니다. |
LocalFileSystem(String directory)
public LocalFileSystem(String directory)
지정된 기본 디렉터리로 새로운 LocalFileSystem을 초기화합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 디렉터리 | java.lang.String |
close()
public void close()
파일 시스템을 해제하고 리소스를 해제합니다.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| fileName | 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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| fileName | java.lang.String | |
| options | IOConfig |
Returns: com.aspose.csporter.helpers.Stream