ZipFileSystem

ZipFileSystem

Overview

ZipFileSystem is a class in Aspose.3D FOSS for Java. Inherits from: FileSystem.

ZipFileSystem can be constructed from a file path or an InputStream and provides readFile and writeFile methods to access files inside a ZIP archive as streams.

This class provides 10 methods for working with ZipFileSystem objects in Java programs. Available methods include: ZipFileSystem, 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

SignatureDescription
ZipFileSystem(fileName: String)Calls ZipFileSystem(fileName) on this ZipFileSystem instance.
ZipFileSystem(stream: InputStream, baseDir: String)Calls ZipFileSystem(stream, baseDir) on this ZipFileSystem instance.
readFile(fileName: String, options: IOConfig)InputStreamNot implemented in the FOSS edition — throws at runtime. Calls readFile(fileName, options) on this ZipFileSystem instance.
writeFile(fileName: String, options: IOConfig)OutputStreamNot implemented in the FOSS edition — throws at runtime. Calls writeFile(fileName, options) on this ZipFileSystem instance.
close()Calls close on this ZipFileSystem instance.
createLocalFileSystem(directory: String)LocalFileSystemInitialize a new FileSystem that only access local directory.
createMemoryFileSystem(files: Map<String, ByteArrayOutputStream>)MemoryFileSystemInitialize a new FileSystem from a dictionary of memory streams.
createDummyFileSystem()DummyFileSystemCreate a dummy file system, read/write operations are dummy operations.
createZipFileSystem(stream: InputStream, baseDir: String)ZipFileSystemCreate a file system to provide to the read-only access to specified zip file or zip stream.
createZipFileSystem(fileName: String)ZipFileSystemCreate a file system to provide to the read-only access to specified zip file or zip stream.

See Also

 English