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);

생성자

생성자설명
ZipArchiveFileSystem(Stream stream, String baseDir)스트림을 통해 ZipArchiveFileSystem를 구성합니다.
ZipArchiveFileSystem(Stream stream)스트림을 통해 ZipArchiveFileSystem를 구성합니다.
ZipArchiveFileSystem(String fileName)파일 이름을 통해 ZipArchiveFileSystem를 구성합니다.

메서드

메서드설명
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
baseDirjava.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:

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

close()

public void close()

ZipArchiveFileSystem을 해제하고 내부 리소스를 반환합니다.

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