Package com.aspose.threed
Class ZipArchiveFileSystem
- java.lang.Object
-
- com.aspose.threed.FileSystem
-
- com.aspose.threed.ZipArchiveFileSystem
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ZipArchiveFileSystem extends FileSystem
File system to provide to the read-only access to speicified zip file or zip stream. File system will be disposed after the open/save operation.
-
-
Constructor Summary
Constructors Constructor Description ZipArchiveFileSystem(com.aspose.threed.Stream stream)
Construct aZipArchiveFileSystem
through a stream.ZipArchiveFileSystem(com.aspose.threed.Stream stream, java.lang.String baseDir)
Construct aZipArchiveFileSystem
through a stream.ZipArchiveFileSystem(java.lang.String fileName)
Construct aZipArchiveFileSystem
through a file name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Dispose the ZipArchiveFileSystem and release its internal resources.com.aspose.threed.Stream
readFile(java.lang.String fileName, IOConfig options)
Open file for readingcom.aspose.threed.Stream
writeFile(java.lang.String fileName, IOConfig options)
Open file for writing, not implemented in this class.
-
-
-
Constructor Detail
-
ZipArchiveFileSystem
public ZipArchiveFileSystem(com.aspose.threed.Stream stream, java.lang.String baseDir) throws java.io.IOException
Construct aZipArchiveFileSystem
through a stream.- Parameters:
stream
-baseDir
-- Throws:
java.io.IOException
-
ZipArchiveFileSystem
public ZipArchiveFileSystem(com.aspose.threed.Stream stream) throws java.io.IOException
Construct aZipArchiveFileSystem
through a stream.- Parameters:
stream
-- Throws:
java.io.IOException
-
ZipArchiveFileSystem
public ZipArchiveFileSystem(java.lang.String fileName) throws java.io.IOException
Construct aZipArchiveFileSystem
through a file name.- Parameters:
fileName
-- Throws:
java.io.IOException
-
-
Method Detail
-
readFile
public com.aspose.threed.Stream readFile(java.lang.String fileName, IOConfig options) throws java.io.IOException
Open file for reading- Specified by:
readFile
in classFileSystem
- Parameters:
fileName
-options
-- Throws:
java.io.IOException
-
writeFile
public com.aspose.threed.Stream writeFile(java.lang.String fileName, IOConfig options)
Open file for writing, not implemented in this class.- Specified by:
writeFile
in classFileSystem
- Parameters:
fileName
-options
-
-
close
public void close() throws java.io.IOException
Dispose the ZipArchiveFileSystem and release its internal resources.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classFileSystem
- Throws:
java.io.IOException
-
-