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:

매개변수형식설명
arg0java.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:

매개변수형식설명
fileNamejava.lang.String
optionsIOConfig

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:

매개변수형식설명
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

매개변수형식설명
arg0long
arg1int

writeFile(String fileName, IOConfig options)

public Stream writeFile(String fileName, IOConfig options)

종속성을 쓰기 위한 스트림을 생성합니다.

Parameters:

매개변수형식설명
fileNamejava.lang.String
optionsIOConfig

Returns: com.aspose.csporter.helpers.Stream